From a2f6db317844fcfb2341dcc5dac87f91c9f96513 Mon Sep 17 00:00:00 2001 From: "craig.p.drummond" Date: Fri, 15 Feb 2013 17:21:12 +0000 Subject: [PATCH] Always delete update --- devices/device.cpp | 2 +- online/onlineservice.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/device.cpp b/devices/device.cpp index 5b6be514a..786dca0ea 100644 --- a/devices/device.cpp +++ b/devices/device.cpp @@ -281,11 +281,11 @@ void Device::applyUpdate() foreach (MusicLibraryItem *item, update->childItems()) { item->setParent(this); } - delete update; refreshIndexes(); model->endInsertRows(); } } + delete update; update=0; } diff --git a/online/onlineservice.cpp b/online/onlineservice.cpp index ac85cd055..8b556f7cd 100644 --- a/online/onlineservice.cpp +++ b/online/onlineservice.cpp @@ -272,11 +272,11 @@ void OnlineService::applyUpdate() foreach (MusicLibraryItem *item, update->childItems()) { item->setParent(this); } - delete update; refreshIndexes(); model->endInsertRows(); } } + delete update; update=0; }