aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-08-14 10:08:20 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-08-14 10:08:20 +0000
commit5ff8a4d5af48fd0c5844e9742063ba3fbfd0cc36 (patch)
treecdbbd54477d2f2b3869d386104fef73b556ffaa1 /src/qmmpui
parent2e689e667c8f4a53b9147ee3f54189a955acbc29 (diff)
downloadqmmp-5ff8a4d5af48fd0c5844e9742063ba3fbfd0cc36.tar.gz
qmmp-5ff8a4d5af48fd0c5844e9742063ba3fbfd0cc36.tar.bz2
qmmp-5ff8a4d5af48fd0c5844e9742063ba3fbfd0cc36.zip
fixed destructors
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3598 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui')
-rw-r--r--src/qmmpui/groupedcontainer.cpp1
-rw-r--r--src/qmmpui/normalcontainer.cpp1
-rw-r--r--src/qmmpui/playlistcontainer.cpp29
-rw-r--r--src/qmmpui/qmmpui.pro3
4 files changed, 33 insertions, 1 deletions
diff --git a/src/qmmpui/groupedcontainer.cpp b/src/qmmpui/groupedcontainer.cpp
index 6c395042f..400490b53 100644
--- a/src/qmmpui/groupedcontainer.cpp
+++ b/src/qmmpui/groupedcontainer.cpp
@@ -26,6 +26,7 @@ GroupedContainer::GroupedContainer()
GroupedContainer::~GroupedContainer()
{
+ clear();
}
void GroupedContainer::addGroup(PlayListGroup *group)
diff --git a/src/qmmpui/normalcontainer.cpp b/src/qmmpui/normalcontainer.cpp
index c9167930a..35a99ce3b 100644
--- a/src/qmmpui/normalcontainer.cpp
+++ b/src/qmmpui/normalcontainer.cpp
@@ -26,6 +26,7 @@ NormalContainer::NormalContainer()
NormalContainer::~NormalContainer()
{
+ clear();
}
void NormalContainer::addTrack(PlayListTrack *track)
diff --git a/src/qmmpui/playlistcontainer.cpp b/src/qmmpui/playlistcontainer.cpp
new file mode 100644
index 000000000..f7fbc033f
--- /dev/null
+++ b/src/qmmpui/playlistcontainer.cpp
@@ -0,0 +1,29 @@
+/***************************************************************************
+ * Copyright (C) 2013 by Ilya Kotov *
+ * forkotov02@hotmail.ru *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
+ ***************************************************************************/
+
+#include "playlistcontainer_p.h"
+
+PlayListContainer::~PlayListContainer()
+{
+ qDebug("%s", Q_FUNC_INFO);
+ clear();
+}
+
+
diff --git a/src/qmmpui/qmmpui.pro b/src/qmmpui/qmmpui.pro
index 7bb64cf74..05273bd7e 100644
--- a/src/qmmpui/qmmpui.pro
+++ b/src/qmmpui/qmmpui.pro
@@ -86,7 +86,8 @@ SOURCES += general.cpp \
playlistgroup.cpp \
playlisttrack.cpp \
groupedcontainer.cpp \
- normalcontainer.cpp
+ normalcontainer.cpp \
+ playlistcontainer.cpp
FORMS += forms/detailsdialog.ui \
forms/tageditor.ui \
forms/templateeditor.ui \