1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Fixed memory leak

(formal only, the data is allocated during the whole application life anyway)
This commit is contained in:
Martin Tůma 2020-02-20 09:02:01 +01:00
parent 1de9c6ef5d
commit 015a9187a0

View File

@ -52,7 +52,7 @@ bool MapList::loadFile(const QString &path, bool *terminate)
else if (GMAP::isGMAP(path)) { else if (GMAP::isGMAP(path)) {
if (terminate) if (terminate)
*terminate = true; *terminate = true;
map = new IMGMap(path); map = new IMGMap(path, this);
} }
} else if (suffix == "jnx") } else if (suffix == "jnx")
map = new JNXMap(path, this); map = new JNXMap(path, this);