Skip to content

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/core/qgsspatialrefsys.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <ogr_api.h>
2020
#include <ogr_spatialref.h>
2121
#include <cpl_error.h>
22+
#include <cpl_conv.h>
2223

2324
CUSTOM_SRS_VALIDATION QgsSpatialRefSys::mCustomSrsValidation = NULL;
2425

@@ -291,6 +292,8 @@ bool QgsSpatialRefSys::createFromWkt(QString theWkt)
291292
createFromProj4(QString(proj4src));
292293
return mIsValidFlag;
293294
//setMapunits will be called by createfromproj above
295+
296+
CPLFree(proj4src);
294297
}
295298

296299
bool QgsSpatialRefSys::createFromEpsg(long theEpsg)

0 commit comments

Comments
 (0)
Please sign in to comment.