Merge Simon Arlott's 'qof-instance-dispose' into maint.

This commit is contained in:
John Ralls
2021-08-05 11:45:14 -07:00

View File

@@ -319,9 +319,8 @@ qof_instance_dispose (GObject *instp)
QofInstance* inst = QOF_INSTANCE(instp); QofInstance* inst = QOF_INSTANCE(instp);
priv = GET_PRIVATE(instp); priv = GET_PRIVATE(instp);
if (!priv->collection) if (priv->collection)
return; qof_collection_remove_entity(inst);
qof_collection_remove_entity(inst);
CACHE_REMOVE(inst->e_type); CACHE_REMOVE(inst->e_type);
inst->e_type = NULL; inst->e_type = NULL;