* 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
This commit is contained in:
Abdelrazak Younes 2006-10-13 16:48:12 +00:00
parent d37fae169c
commit c5dd10f93e
2 changed files with 8 additions and 1 deletions

View File

@ -81,6 +81,13 @@ lyx::frontend::Application * createApplication(int & argc, char * argv[])
namespace frontend { namespace frontend {
GuiApplication::~GuiApplication()
{
socket_callbacks_.clear();
}
GuiApplication::GuiApplication(int & argc, char ** argv) GuiApplication::GuiApplication(int & argc, char ** argv)
: QApplication(argc, argv), Application(argc, argv) : QApplication(argc, argv), Application(argc, argv)
{ {

View File

@ -52,7 +52,7 @@ class GuiApplication : public QApplication, public Application
public: public:
GuiApplication(int & argc, char ** argv); GuiApplication(int & argc, char ** argv);
/// ///
virtual ~GuiApplication() {} virtual ~GuiApplication();
/// Method inherited from \c Application class /// Method inherited from \c Application class
//@{ //@{