diff --git a/src/frontends/qt4/GuiApplication.C b/src/frontends/qt4/GuiApplication.C index fb50274b57..9bf40d5d15 100644 --- a/src/frontends/qt4/GuiApplication.C +++ b/src/frontends/qt4/GuiApplication.C @@ -81,6 +81,13 @@ lyx::frontend::Application * createApplication(int & argc, char * argv[]) namespace frontend { + +GuiApplication::~GuiApplication() +{ + socket_callbacks_.clear(); +} + + GuiApplication::GuiApplication(int & argc, char ** argv) : QApplication(argc, argv), Application(argc, argv) { diff --git a/src/frontends/qt4/GuiApplication.h b/src/frontends/qt4/GuiApplication.h index 2212ec44fe..ec4996694c 100644 --- a/src/frontends/qt4/GuiApplication.h +++ b/src/frontends/qt4/GuiApplication.h @@ -52,7 +52,7 @@ class GuiApplication : public QApplication, public Application public: GuiApplication(int & argc, char ** argv); /// - virtual ~GuiApplication() {} + virtual ~GuiApplication(); /// Method inherited from \c Application class //@{