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:
parent
3617928621
commit
da2d5b5ee1
@ -1053,6 +1053,7 @@ void ProfileWidget2::clearHandlers()
|
||||
if (handles.count()) {
|
||||
foreach (DiveHandler *handle, handles) {
|
||||
scene()->removeItem(handle);
|
||||
delete handle;
|
||||
}
|
||||
handles.clear();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user