From f099d646c7b2f344b4c9b13cf1485430a921e25c Mon Sep 17 00:00:00 2001 From: ptv Date: Mon, 17 Jul 2006 07:41:06 +0000 Subject: [PATCH] remove memory leak --- src/Qtx/QtxWorkstack.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ); -- 2.39.2