From: ptv Date: Mon, 17 Jul 2006 07:41:06 +0000 (+0000) Subject: remove memory leak X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~56 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f099d646c7b2f344b4c9b13cf1485430a921e25c;p=modules%2Fgui.git remove memory leak --- diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index f35752e4b..0c4ff08d3 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -2342,16 +2342,16 @@ void QtxWorkstackTabBar::setActive( const bool on ) { QFont aFont = font(); aFont.setUnderline( on ); - QColorGroup* aColGrp = new QColorGroup(); + QColorGroup aColGrp; QPalette aPal = palette(); if ( !on ) { - aPal.setColor( QColorGroup::HighlightedText, aColGrp->foreground() ); + aPal.setColor( QColorGroup::HighlightedText, aColGrp.foreground() ); aPal.setColor( QColorGroup::Highlight, colorGroup().dark().light( DARK_COLOR_LIGHT ) ); setPalette( aPal ); } else { - aPal.setColor( QColorGroup::HighlightedText, aColGrp->highlightedText() ); - aPal.setColor( QColorGroup::Highlight, aColGrp->highlight() ); + aPal.setColor( QColorGroup::HighlightedText, aColGrp.highlightedText() ); + aPal.setColor( QColorGroup::Highlight, aColGrp.highlight() ); unsetPalette(); } setFont( aFont );