From da2d5b5ee1b48ce1bfdc82bc12bd90c35ca03aff Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Fri, 13 Mar 2015 02:32:49 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 1 + 1 file changed, 1 insertion(+) 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(); } -- cgit v1.2.3-70-g09d2