mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix memory leak
git-svn-id: http://svn.osgeo.org/qgis/trunk@14177 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
b33d801285
commit
ed9a7e19e0
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user