Only remove if it can potentially exist.
@@ -169,7 +169,9 @@ SerializableArray::clear(int id)
EntryMap::iterator it = find(id);
if (it != _entries.end()) {
_entries.erase(it);
+ if (_owned) {
_owned->erase(id);
+ }
invalidate();
}
}
