Skip to content
Permalink
Browse files

fix memory leak

git-svn-id: http://svn.osgeo.org/qgis/trunk@13119 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Mar 20, 2010
1 parent 3eb3654 commit 371b4551c533c2ac10fbd49eb4b315c0224cec65
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/composer/qgslegendmodel.cpp
@@ -783,6 +783,7 @@ bool QgsLegendModel::readXML( const QDomElement& legendModelElem, const QDomDocu
if ( mapIt != loadSymbolMap.end() )
{
QgsSymbolV2* symbolNg = mapIt.value();
insertSymbolV2( symbolNg );
childItem->setData( QVariant::fromValue(( void* )symbolNg ), Qt::UserRole + 2 );
childItem->setIcon( QgsSymbolLayerV2Utils::symbolPreviewIcon( symbolNg, QSize( 30, 30 ) ) );
}

0 comments on commit 371b455

Please sign in to comment.
You can’t perform that action at this time.