From 333a0cd1bb98820d91588896acbaa83bcf4735cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Sun, 2 Dec 2007 09:27:02 +0000 Subject: [PATCH] fix memory leak. addMenu does not take ownership, a Qt bug? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21905 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiPopupMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiPopupMenu.cpp b/src/frontends/qt4/GuiPopupMenu.cpp index a529616790..728f73bb46 100644 --- a/src/frontends/qt4/GuiPopupMenu.cpp +++ b/src/frontends/qt4/GuiPopupMenu.cpp @@ -29,7 +29,7 @@ namespace frontend { GuiPopupMenu::GuiPopupMenu(GuiMenubar * owner, MenuItem const & mi, bool topLevelMenu) - : owner_(owner) + : QMenu(owner->menuBar()), owner_(owner) { name_ = mi.submenuname();