Always delete update

This commit is contained in:
craig.p.drummond
2013-02-15 17:21:12 +00:00
committed by craig.p.drummond
parent da1c692aa3
commit a2f6db3178
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;
}