mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -1053,6 +1053,7 @@ void ProfileWidget2::clearHandlers()
|
|||
if (handles.count()) {
|
||||
foreach (DiveHandler *handle, handles) {
|
||||
scene()->removeItem(handle);
|
||||
delete handle;
|
||||
}
|
||||
handles.clear();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue