summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@nokia.com>2010-09-14 19:50:28 +0200
committerPierre Rossi <pierre.rossi@nokia.com>2010-09-15 14:27:45 +0200
commit653457c61fb27887bfb37eab656181b958db886e (patch)
treed5d91c6f3da77ce569a7b0bc54935d4f0b486a4a
parentUpgraded download i18n script to automagically grab translation strings (diff)
downloadrekonq-653457c61fb27887bfb37eab656181b958db886e.tar.xz
Notification bar: fix a memory leak.
-rw-r--r--src/notificationbar.cpp6
-rw-r--r--src/notificationbar.h3
2 files changed, 8 insertions, 1 deletions
diff --git a/src/notificationbar.cpp b/src/notificationbar.cpp
index 1ff29e92..94c5cba8 100644
--- a/src/notificationbar.cpp
+++ b/src/notificationbar.cpp
@@ -74,6 +74,12 @@ NotificationBar::NotificationBar(QWidget *parent)
setGraphicsEffect(m_blinkEffect);
}
+NotificationBar::~NotificationBar()
+{
+ delete m_opacityAnimation;
+ delete m_blinkEffect;
+}
+
void NotificationBar::notifyUser(int animationDuration)
{
m_opacityAnimation->setDuration(animationDuration);
diff --git a/src/notificationbar.h b/src/notificationbar.h
index 15b0255c..858fac80 100644
--- a/src/notificationbar.h
+++ b/src/notificationbar.h
@@ -37,8 +37,9 @@ class NotificationBar : public QWidget
{
public:
explicit NotificationBar(QWidget *parent = 0);
+ ~NotificationBar();
- void notifyUser(int animationDuration = 500);
+ void notifyUser(int animationDuration = 400);
private:
BlinkEffect *m_blinkEffect;