Skip to content
Permalink
Browse files

Fix leak in QgsCoordinateReferenceSystem

  • Loading branch information
nyalldawson committed Feb 7, 2017
1 parent 2555d28 commit aad7c5eaafb58c8281ca75106f3c38bd4990bbbf
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 aad7c5e

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