From f4400845af432034b7fff7f1e8d5afd7a90b3a50 Mon Sep 17 00:00:00 2001 From: Tommaso Cucinotta Date: Sat, 15 Oct 2011 13:34:14 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/LayoutBox.cpp | 5 +++++ src/frontends/qt4/LayoutBox.h | 1 + 2 files changed, 6 insertions(+) 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);