Skip to content
Permalink
Browse files
Fix crash in GetLegendGraphic with scale parameter and plug memory leak
  • Loading branch information
mhugent committed Jun 12, 2014
1 parent 37d2144 commit d8a0361febf6a52cd47bfca8f753afbf2d0bd153
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/core/composer/qgslegendmodel.cpp
  2. +1 −0 src/mapserver/qgswmsserver.cpp
@@ -195,7 +195,7 @@ int QgsLegendModel::addVectorLayerItemsV2( QStandardItem* layerItem, QgsVectorLa
{
currentSymbolItem->setIcon( QgsSymbolLayerV2Utils::symbolPreviewIcon( symbolIt->second, QSize( 30, 30 ) ) );
}
currentSymbolItem->setSymbolV2( symbolIt->second );
currentSymbolItem->setSymbolV2( symbolIt->second->clone() );
layerItem->setChild( row, 0, currentSymbolItem );
currentSymbolItem->setText( symbolIt->first );
}
@@ -262,6 +262,7 @@ void QgsWMSServer::executeRequest()
//do some error handling
QgsDebugMsg( "result image is 0" );
}
delete result;
}
//GetPrint
else if ( request.compare( "GetPrint", Qt::CaseInsensitive ) == 0 )

0 comments on commit d8a0361

Please sign in to comment.