Skip to content
Permalink
Browse files
fix memory leak
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14177 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Sep 1, 2010
1 parent d832757 commit fb351d44451c604a2f5d8f839b73d19ce2baac72
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/qgsvectorfilewriter.cpp
@@ -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 )

0 comments on commit fb351d4

Please sign in to comment.