diff --git a/src/gtk/display.cpp b/src/gtk/display.cpp index dda71d6dcf..5f9c28c2d5 100644 --- a/src/gtk/display.cpp +++ b/src/gtk/display.cpp @@ -298,7 +298,7 @@ protected: wxDisplayFactory* wxDisplay::CreateFactory() { - return wxDisplayFactorySingleGTK; + return new wxDisplayFactorySingleGTK; } #endif // wxUSE_DISPLAY/!wxUSE_DISPLAY