diff options
| -rw-r--r-- | src/qmmpui/groupedcontainer.cpp | 1 | ||||
| -rw-r--r-- | src/qmmpui/normalcontainer.cpp | 1 | ||||
| -rw-r--r-- | src/qmmpui/playlistcontainer.cpp | 29 | ||||
| -rw-r--r-- | src/qmmpui/qmmpui.pro | 3 |
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 \ |
