Skip to content
Permalink
Browse files

Fix leak in QgsCoordinateReferenceSystem

(cherry-picked from aad7c5)
  • Loading branch information
nyalldawson committed Feb 12, 2017
1 parent 343bc8a commit 34e307bebc03dfd2471c2523289cc9ae5fb2488a
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/core/qgscoordinatereferencesystem_p.h
@@ -65,7 +65,7 @@ class QgsCoordinateReferenceSystemPrivate : public QSharedData
, mSRID( other.mSRID )
, mAuthId( other.mAuthId )
, mIsValid( other.mIsValid )
, mCRS( OSRNewSpatialReference( nullptr ) )
, mCRS( nullptr )
, mValidationHint( other.mValidationHint )
, mWkt( other.mWkt )
, mProj4( other.mProj4 )
@@ -76,6 +76,10 @@ class QgsCoordinateReferenceSystemPrivate : public QSharedData
{
mCRS = OSRClone( other.mCRS );
}
else
{
mCRS = OSRNewSpatialReference( nullptr );
}
}

~QgsCoordinateReferenceSystemPrivate()

0 comments on commit 34e307b

Please sign in to comment.
You can’t perform that action at this time.