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:
parent
2fb2beecda
commit
ff3c0aafa1
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user