From c5dd10f93e6590ee5b47c4c45aa7083ea2f0af10 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 13 Oct 2006 16:48:12 +0000 Subject: [PATCH] * GuiApplication: explicitly clear out socket_callbacks_ in the destructor. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15325 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiApplication.C | 7 +++++++ src/frontends/qt4/GuiApplication.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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 //@{