Fix memory leak.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20865 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-10-09 09:29:27 +00:00
parent 1a600cbff0
commit 17ffac2ae9
2 changed files with 8 additions and 0 deletions

View File

@ -52,6 +52,12 @@ GuiToc::GuiToc(GuiViewBase & parent, Qt::DockWidgetArea area, Qt::WindowFlags fl
} }
GuiToc::~GuiToc()
{
delete widget_;
}
int GuiToc::getTocDepth(int type) int GuiToc::getTocDepth(int type)
{ {
if (type < 0) if (type < 0)

View File

@ -44,6 +44,8 @@ public:
Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock (and also drawer) Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock (and also drawer)
Qt::WindowFlags flags = 0); Qt::WindowFlags flags = 0);
~GuiToc();
/// ///
bool initialiseParams(std::string const & data); bool initialiseParams(std::string const & data);
/// ///