Always delete update

This commit is contained in:
craig.p.drummond
2013-02-15 17:21:12 +00:00
parent 639aa30a8f
commit 005ff023e1
2 changed files with 2 additions and 2 deletions

View File

@@ -281,11 +281,11 @@ void Device::applyUpdate()
foreach (MusicLibraryItem *item, update->childItems()) {
item->setParent(this);
}
delete update;
refreshIndexes();
model->endInsertRows();
}
}
delete update;
update=0;
}

View File

@@ -272,11 +272,11 @@ void OnlineService::applyUpdate()
foreach (MusicLibraryItem *item, update->childItems()) {
item->setParent(this);
}
delete update;
refreshIndexes();
model->endInsertRows();
}
}
delete update;
update=0;
}