Skip to content

Commit 8c3b703

Browse files
author
mhugent
committed
fix memory leak
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13119 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2fbfc7f commit 8c3b703

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/composer/qgslegendmodel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,7 @@ bool QgsLegendModel::readXML( const QDomElement& legendModelElem, const QDomDocu
783783
if ( mapIt != loadSymbolMap.end() )
784784
{
785785
QgsSymbolV2* symbolNg = mapIt.value();
786+
insertSymbolV2( symbolNg );
786787
childItem->setData( QVariant::fromValue(( void* )symbolNg ), Qt::UserRole + 2 );
787788
childItem->setIcon( QgsSymbolLayerV2Utils::symbolPreviewIcon( symbolNg, QSize( 30, 30 ) ) );
788789
}

0 commit comments

Comments
 (0)