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);