mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
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:
parent
1a600cbff0
commit
17ffac2ae9
@ -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)
|
||||||
|
@ -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);
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user