From ad180bfdd74c7f6dc79aed6c0180c458f531c1ec Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 8 Sep 2015 18:39:44 +0300 Subject: [PATCH] Memory leak detected --- src/ModuleBase/ModuleBase_ToolBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ModuleBase/ModuleBase_ToolBox.cpp b/src/ModuleBase/ModuleBase_ToolBox.cpp index 88bb944d8..7f8736a25 100644 --- a/src/ModuleBase/ModuleBase_ToolBox.cpp +++ b/src/ModuleBase/ModuleBase_ToolBox.cpp @@ -23,7 +23,7 @@ ModuleBase_ToolBox::ModuleBase_ToolBox( QWidget* theParent ) aMainLayout->addWidget( myButtonsFrame, 0 ); aMainLayout->addWidget( myStack, 1 ); - myButtonsGroup = new QButtonGroup(); + myButtonsGroup = new QButtonGroup(this); myButtonsGroup->setExclusive( true ); myButtonsLayout = new QHBoxLayout( myButtonsFrame ); myButtonsLayout->setMargin( 0 ); -- 2.39.2