1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 13:41:16 +01:00

Fixed memory leak

This commit is contained in:
Martin Tůma 2019-05-29 18:26:29 +02:00
parent 2fb2beecda
commit ff3c0aafa1

View File

@ -128,6 +128,8 @@ Projection::~Projection()
Projection &Projection::operator=(const Projection &p) Projection &Projection::operator=(const Projection &p)
{ {
delete _ct;
_gcs = p._gcs; _gcs = p._gcs;
_units = p._units; _units = p._units;
_ct = p._ct ? p._ct->clone() : 0; _ct = p._ct ? p._ct->clone() : 0;