]> git.lyx.org Git - lyx.git/commitdiff
Cleanup private part of Layout Box on destructor (probably not really an
authorTommaso Cucinotta <tommaso@lyx.org>
Sat, 15 Oct 2011 13:34:14 +0000 (13:34 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Sat, 15 Oct 2011 13:34:14 +0000 (13:34 +0000)
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

src/frontends/qt4/LayoutBox.cpp
src/frontends/qt4/LayoutBox.h

index 55888d5ec173cfb11e5190d2a595f8c2e60736b5..c46ce4553837667ea10dd16e16a3bc166cf9349f 100644 (file)
@@ -418,6 +418,11 @@ LayoutBox::LayoutBox(GuiView & owner)
 }
 
 
+LayoutBox::~LayoutBox() {
+       delete d;
+}
+
+
 void LayoutBox::Private::countCategories()
 {
        int n = filterModel_->rowCount();
index 493f931d1b5076b9ac3756232c25eca37fe316ae..0b37e7e82a881bdddcde49fd281610fe9c8abf74 100644 (file)
@@ -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);