diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-12-18 08:47:48 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-18 07:22:24 -0800 |
commit | bdea7dd0d6bdcbd7aaeedaa366fab72cbabb6762 (patch) | |
tree | 962027280d287eca1d5fcc5cc306bf38cb02bf0a /qt-ui | |
parent | d812d7b1f6c639e562f13bf5ee202655cd96cc98 (diff) | |
download | subsurface-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.cpp | 2 |
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); |