Profile: fix potential mem leak in pointsInserted()

The point graphics are allocated but doens't seem to be
deleted anywhere. We attempt to fix that in clearHandlers().

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2015-03-13 02:32:49 +02:00 committed by Dirk Hohndel
parent 3617928621
commit da2d5b5ee1

View file

@ -1053,6 +1053,7 @@ void ProfileWidget2::clearHandlers()
if (handles.count()) {
foreach (DiveHandler *handle, handles) {
scene()->removeItem(handle);
delete handle;
}
handles.clear();
}