[vlmc-devel] NotificationZone: Fix memory leak
Hugo Beauzée-Luyssen
git at videolan.org
Mon Mar 28 18:03:54 CEST 2016
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Mar 28 17:46:28 2016 +0200| [55e8f4087fd4d1c8bb263ee99405f87e868afb50] | committer: Hugo Beauzée-Luyssen
NotificationZone: Fix memory leak
> https://code.videolan.org/videolan/vlmc/commit/55e8f4087fd4d1c8bb263ee99405f87e868afb50
---
src/Gui/widgets/NotificationZone.cpp | 5 +++++
src/Gui/widgets/NotificationZone.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/src/Gui/widgets/NotificationZone.cpp b/src/Gui/widgets/NotificationZone.cpp
index 66ba0f9..465dd3a 100644
--- a/src/Gui/widgets/NotificationZone.cpp
+++ b/src/Gui/widgets/NotificationZone.cpp
@@ -36,6 +36,11 @@ NotificationZone::NotificationZone(QWidget *parent) :
connect( m_timer, SIGNAL( timeout() ), this, SLOT( hideNotification() ) );
}
+NotificationZone::~NotificationZone()
+{
+ delete m_ui;
+}
+
void
NotificationZone::notify( const QString &message )
{
diff --git a/src/Gui/widgets/NotificationZone.h b/src/Gui/widgets/NotificationZone.h
index 71014fe..77a0303 100644
--- a/src/Gui/widgets/NotificationZone.h
+++ b/src/Gui/widgets/NotificationZone.h
@@ -39,6 +39,7 @@ class NotificationZone : public QWidget, public Singleton<NotificationZone>
private:
explicit NotificationZone(QWidget *parent = 0);
+ virtual ~NotificationZone();
private:
Ui::NotificationZone *m_ui;
More information about the Vlmc-devel
mailing list