mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Fixed memory leak
This commit is contained in:
parent
630a5cea83
commit
7babf734bf
@ -244,6 +244,7 @@ static void removeDuplicitLabel(QList<TextItem *> &labels, const QString &text,
|
||||
TextItem *item = labels.at(j);
|
||||
if (tileRect.contains(item->boundingRect()) && *(item->text()) == text) {
|
||||
labels.removeOne(item);
|
||||
delete item;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user