fix memory leak

git-svn-id: http://svn.osgeo.org/qgis/trunk@14177 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2010-09-01 21:46:44 +00:00
parent b33d801285
commit ed9a7e19e0

View File

@ -138,6 +138,8 @@ QgsVectorFileWriter::QgsVectorFileWriter(
{
for ( int i = 0; i < datasourceOptions.size(); i++ )
CPLFree( options[i] );
delete [] options;
options = NULL;
}
if ( mDS == NULL )
@ -194,6 +196,8 @@ QgsVectorFileWriter::QgsVectorFileWriter(
{
for ( int i = 0; i < layerOptions.size(); i++ )
CPLFree( options[i] );
delete [] options;
options = NULL;
}
if ( srs )