From 6cc65f5e1cf1eb0c870323d4c19e2d5c9cc9fd11 Mon Sep 17 00:00:00 2001 From: Boris Barbulovski Date: Wed, 15 Jan 2014 18:52:42 +0100 Subject: Fix some memory leaks. Memory leaks were caused by broken parent/child relations. Signed-off-by: Boris Barbulovski Signed-off-by: Dirk Hohndel --- qt-ui/globe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/globe.cpp') diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index 4bc946131..2aed8d4a1 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -68,7 +68,7 @@ GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), loadedDives(0), edit setMinimumHeight(0); setMinimumWidth(0); - fixZoomTimer = new QTimer(); + fixZoomTimer = new QTimer(this); connect(fixZoomTimer, SIGNAL(timeout()), this, SLOT(fixZoom())); fixZoomTimer->setSingleShot(true); installEventFilter(this); -- cgit v1.2.3-70-g09d2