diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-07-29 10:01:35 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-07-29 10:01:35 +0000 |
| commit | e747c2b87c23b40e853a0870530c4a9fa7dad9df (patch) | |
| tree | 4dea494948a0cf052720597b334cd049d17d5ae7 /src/plugins/General/notifier | |
| parent | 534cebc65c3e06c2e24e0e3695078a1afd533a6c (diff) | |
| download | qmmp-e747c2b87c23b40e853a0870530c4a9fa7dad9df.tar.gz qmmp-e747c2b87c23b40e853a0870530c4a9fa7dad9df.tar.bz2 qmmp-e747c2b87c23b40e853a0870530c4a9fa7dad9df.zip | |
fixed memory leaks
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3558 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/notifier')
| -rw-r--r-- | src/plugins/General/notifier/notifier.cpp | 4 | ||||
| -rw-r--r-- | src/plugins/General/notifier/notifier.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/General/notifier/notifier.cpp b/src/plugins/General/notifier/notifier.cpp index 8af0c8d6d..a12034b16 100644 --- a/src/plugins/General/notifier/notifier.cpp +++ b/src/plugins/General/notifier/notifier.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2012 by Ilya Kotov * + * Copyright (C) 2008-2013 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -72,6 +72,8 @@ Notifier::Notifier(QObject *parent) : QObject(parent) Notifier::~Notifier() { removePsiTuneFiles(); + if (m_popupWidget) + delete m_popupWidget; } void Notifier::setState(Qmmp::State state) diff --git a/src/plugins/General/notifier/notifier.h b/src/plugins/General/notifier/notifier.h index bb58a88cc..2576a9b86 100644 --- a/src/plugins/General/notifier/notifier.h +++ b/src/plugins/General/notifier/notifier.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2012 by Ilya Kotov * + * Copyright (C) 2008-2013 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -38,7 +38,7 @@ Q_OBJECT public: Notifier(QObject *parent = 0); - ~Notifier(); + virtual~Notifier(); private slots: void showMetaData(); |
