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@14177 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Sep 1, 2010
1 parent b33d801 commit ed9a7e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/qgsvectorfilewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ QgsVectorFileWriter::QgsVectorFileWriter(
{
for ( int i = 0; i < datasourceOptions.size(); i++ )
CPLFree( options[i] );
delete [] options;
options = NULL;
}

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

if ( srs )
Expand Down

0 comments on commit ed9a7e1

Please sign in to comment.