[PATCH 07/17] Prevent leak by connecting object to its parrent
Anton Lundin
glance at acc.umu.se
Wed Dec 17 23:47:48 PST 2014
Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
qt-ui/profile/divetooltipitem.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qt-ui/profile/divetooltipitem.cpp b/qt-ui/profile/divetooltipitem.cpp
index ad69560..78bdc71 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);
--
2.1.0
More information about the subsurface
mailing list