Author: tommaso
Date: Sat Oct 15 15:34:14 2011
New Revision: 39864
URL: http://www.lyx.org/trac/changeset/39864

Log:
Cleanup private part of Layout Box on destructor (probably not really an
issue, but brings less noise about memory leaks when using valgrind).

Modified:
   lyx-devel/trunk/src/frontends/qt4/LayoutBox.cpp
   lyx-devel/trunk/src/frontends/qt4/LayoutBox.h

Modified: lyx-devel/trunk/src/frontends/qt4/LayoutBox.cpp
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/LayoutBox.cpp     Sat Oct 15 15:32:14 
2011        (r39863)
+++ lyx-devel/trunk/src/frontends/qt4/LayoutBox.cpp     Sat Oct 15 15:34:14 
2011        (r39864)
@@ -418,6 +418,11 @@
 }
 
 
+LayoutBox::~LayoutBox() {
+       delete d;
+}
+
+
 void LayoutBox::Private::countCategories()
 {
        int n = filterModel_->rowCount();

Modified: lyx-devel/trunk/src/frontends/qt4/LayoutBox.h
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/LayoutBox.h       Sat Oct 15 15:32:14 
2011        (r39863)
+++ lyx-devel/trunk/src/frontends/qt4/LayoutBox.h       Sat Oct 15 15:34:14 
2011        (r39864)
@@ -35,6 +35,7 @@
        Q_OBJECT
 public:
        LayoutBox(GuiView &);
+       ~LayoutBox();
 
        /// select the right layout in the combobox.
        void set(docstring const & layout);

Reply via email to