From bdea7dd0d6bdcbd7aaeedaa366fab72cbabb6762 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 18 Dec 2014 08:47:48 +0100 Subject: Prevent leak by connecting object to its parrent Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/profile/divetooltipitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/profile/divetooltipitem.cpp') diff --git a/qt-ui/profile/divetooltipitem.cpp b/qt-ui/profile/divetooltipitem.cpp index ad69560a6..78bdc71a1 100644 --- a/qt-ui/profile/divetooltipitem.cpp +++ b/qt-ui/profile/divetooltipitem.cpp @@ -126,7 +126,7 @@ void ToolTipItem::expand() nextRectangle.setWidth(width); nextRectangle.setHeight(height); - QPropertyAnimation *animation = new QPropertyAnimation(this, "rect"); + QPropertyAnimation *animation = new QPropertyAnimation(this, "rect", this); animation->setDuration(100); animation->setStartValue(rectangle); animation->setEndValue(nextRectangle); -- cgit v1.2.3-70-g09d2