]> git.lyx.org Git - features.git/commitdiff
Fix memory leak.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 9 Oct 2007 09:29:27 +0000 (09:29 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 9 Oct 2007 09:29:27 +0000 (09:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20865 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiToc.cpp
src/frontends/qt4/GuiToc.h

index 13cd95f7829b883db7edc0bd2993619805fbfd32..47c67604cbf234feebf7bc1f501ebebbd469e23a 100644 (file)
@@ -52,6 +52,12 @@ GuiToc::GuiToc(GuiViewBase & parent, Qt::DockWidgetArea area, Qt::WindowFlags fl
 }
 
 
+GuiToc::~GuiToc()
+{
+       delete widget_;
+}
+
+
 int GuiToc::getTocDepth(int type)
 {
        if (type < 0)
index a308f06adea7b0c97bdebce93e5b74b0ec3aee5e..4c9b6d64fc67f6a239a7c5cf3a57740ae692cb3d 100644 (file)
@@ -44,6 +44,8 @@ public:
                Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock (and also drawer)
                Qt::WindowFlags flags = 0);
 
+       ~GuiToc();
+
        ///
        bool initialiseParams(std::string const & data);
        ///