Always delete update
This commit is contained in:
committed by
craig.p.drummond
parent
da1c692aa3
commit
a2f6db3178
@@ -281,11 +281,11 @@ void Device::applyUpdate()
|
||||
foreach (MusicLibraryItem *item, update->childItems()) {
|
||||
item->setParent(this);
|
||||
}
|
||||
delete update;
|
||||
refreshIndexes();
|
||||
model->endInsertRows();
|
||||
}
|
||||
}
|
||||
delete update;
|
||||
update=0;
|
||||
}
|
||||
|
||||
|
||||
@@ -272,11 +272,11 @@ void OnlineService::applyUpdate()
|
||||
foreach (MusicLibraryItem *item, update->childItems()) {
|
||||
item->setParent(this);
|
||||
}
|
||||
delete update;
|
||||
refreshIndexes();
|
||||
model->endInsertRows();
|
||||
}
|
||||
}
|
||||
delete update;
|
||||
update=0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user