Skip to content

Commit

Permalink
Fix for another small memory leak
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6477 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Feb 1, 2007
1 parent c1dc62d commit b00bd3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsspatialrefsys.cpp
Expand Up @@ -19,6 +19,7 @@
#include <ogr_api.h>
#include <ogr_spatialref.h>
#include <cpl_error.h>
#include <cpl_conv.h>

CUSTOM_SRS_VALIDATION QgsSpatialRefSys::mCustomSrsValidation = NULL;

Expand Down Expand Up @@ -291,6 +292,8 @@ bool QgsSpatialRefSys::createFromWkt(QString theWkt)
createFromProj4(QString(proj4src));
return mIsValidFlag;
//setMapunits will be called by createfromproj above

CPLFree(proj4src);
}

bool QgsSpatialRefSys::createFromEpsg(long theEpsg)
Expand Down

0 comments on commit b00bd3b

Please sign in to comment.