diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-03-13 02:32:49 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-03-14 18:17:26 -0700 |
commit | da2d5b5ee1b48ce1bfdc82bc12bd90c35ca03aff (patch) | |
tree | 403201ad88d93cc067971cedc2ae5702eb1570e9 | |
parent | 3617928621e3e49699b495a12e7125cf909036df (diff) | |
download | subsurface-da2d5b5ee1b48ce1bfdc82bc12bd90c35ca03aff.tar.gz |
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>
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 398934c68..90ecb94b7 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -1053,6 +1053,7 @@ void ProfileWidget2::clearHandlers() if (handles.count()) { foreach (DiveHandler *handle, handles) { scene()->removeItem(handle); + delete handle; } handles.clear(); } |