From bf868d5abccd273bf079f05376a1d790d8eea5cc Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Thu, 2 Jul 2009 15:40:44 +0200 Subject: [PATCH] fixed deck editor bug --- cockatrice/src/decklistmodel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cockatrice/src/decklistmodel.cpp b/cockatrice/src/decklistmodel.cpp index a89841fb..983b36d2 100644 --- a/cockatrice/src/decklistmodel.cpp +++ b/cockatrice/src/decklistmodel.cpp @@ -19,6 +19,7 @@ DeckListModel::DeckListModel(CardDatabase *_db, QObject *parent) DeckListModel::~DeckListModel() { + delete root; } @@ -283,6 +284,7 @@ void DeckListModel::sort(int /*column*/, Qt::SortOrder order) void DeckListModel::cleanList() { + root->clearTree(); deckList->cleanList(); reset(); }