Fix for another small memory leak

git-svn-id: http://svn.osgeo.org/qgis/trunk@6477 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mhugent 2007-02-01 10:31:44 +00:00
parent d9753e2aea
commit e345174df8

View File

@ -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;
@ -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)