From: vsv Date: Tue, 8 Sep 2015 15:39:44 +0000 (+0300) Subject: Memory leak detected X-Git-Tag: V_1.4.0_beta4~70 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ad180bfdd74c7f6dc79aed6c0180c458f531c1ec;p=modules%2Fshaper.git Memory leak detected --- 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 );