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:
parent
1de9c6ef5d
commit
015a9187a0
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user