From 119f67c8f81502b226edc964f386159f3463a2e6 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 30 Mar 2013 13:06:22 +0100 Subject: [PATCH] * Delete root-item when destroying the PlayableModel. --- src/libtomahawk/playlist/PlayableModel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libtomahawk/playlist/PlayableModel.cpp b/src/libtomahawk/playlist/PlayableModel.cpp index 709a7c1bc..f1bbfc88a 100644 --- a/src/libtomahawk/playlist/PlayableModel.cpp +++ b/src/libtomahawk/playlist/PlayableModel.cpp @@ -54,6 +54,8 @@ PlayableModel::PlayableModel( QObject* parent, bool loading ) PlayableModel::~PlayableModel() { + tDebug() << Q_FUNC_INFO; + delete m_rootItem; }