Skip to content

Commit

Permalink
fix memory leak
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13119 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Mar 20, 2010
1 parent 2fbfc7f commit 8c3b703
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/composer/qgslegendmodel.cpp
Expand Up @@ -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 ) ) );
}
Expand Down

0 comments on commit 8c3b703

Please sign in to comment.