From ff3c0aafa1a970bd332bf476e9008958e316a791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 29 May 2019 18:26:29 +0200 Subject: [PATCH] Fixed memory leak --- src/map/projection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/projection.cpp b/src/map/projection.cpp index 6ab98079..7afb4a3b 100644 --- a/src/map/projection.cpp +++ b/src/map/projection.cpp @@ -128,6 +128,8 @@ Projection::~Projection() Projection &Projection::operator=(const Projection &p) { + delete _ct; + _gcs = p._gcs; _units = p._units; _ct = p._ct ? p._ct->clone() : 0;