]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt3/GuiApplication.C
Replace crash on startup with a memory leak.
[lyx.git] / src / frontends / qt3 / GuiApplication.C
index 0c96371d7fd21a40b2ac8d5fc99d54a330e374e8..63394f1330cd1e52fbd065d06ae9efa62bdfc13f 100644 (file)
@@ -79,9 +79,7 @@ namespace lyx {
 
 frontend::Application * createApplication(int & argc, char * argv[])
 {
-       frontend::GuiApplication app(argc, argv);
-
-       return &app;
+       return new frontend::GuiApplication(argc, argv);
 }
 
 namespace frontend {