From: Tommaso Cucinotta Date: Sat, 15 Oct 2011 13:34:14 +0000 (+0000) Subject: Cleanup private part of Layout Box on destructor (probably not really an X-Git-Tag: 2.1.0beta1~2590 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f4400845af432034b7fff7f1e8d5afd7a90b3a50;p=features.git Cleanup private part of Layout Box on destructor (probably not really an issue, but brings less noise about memory leaks when using valgrind). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39864 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/LayoutBox.cpp b/src/frontends/qt4/LayoutBox.cpp index 55888d5ec1..c46ce45538 100644 --- a/src/frontends/qt4/LayoutBox.cpp +++ b/src/frontends/qt4/LayoutBox.cpp @@ -418,6 +418,11 @@ LayoutBox::LayoutBox(GuiView & owner) } +LayoutBox::~LayoutBox() { + delete d; +} + + void LayoutBox::Private::countCategories() { int n = filterModel_->rowCount(); diff --git a/src/frontends/qt4/LayoutBox.h b/src/frontends/qt4/LayoutBox.h index 493f931d1b..0b37e7e82a 100644 --- a/src/frontends/qt4/LayoutBox.h +++ b/src/frontends/qt4/LayoutBox.h @@ -35,6 +35,7 @@ class LayoutBox : public QComboBox Q_OBJECT public: LayoutBox(GuiView &); + ~LayoutBox(); /// select the right layout in the combobox. void set(docstring const & layout);