summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-12-18 08:47:48 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-18 07:22:24 -0800
commitbdea7dd0d6bdcbd7aaeedaa366fab72cbabb6762 (patch)
tree962027280d287eca1d5fcc5cc306bf38cb02bf0a /qt-ui
parentd812d7b1f6c639e562f13bf5ee202655cd96cc98 (diff)
downloadsubsurface-bdea7dd0d6bdcbd7aaeedaa366fab72cbabb6762.tar.gz
Prevent leak by connecting object to its parrent
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profile/divetooltipitem.cpp2
1 files changed, 1 insertions, 1 deletions
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);