mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 799281 - Deleting a transaction may trigger a crash
Update qof_collection_lookup_entity() to prevent returning instances marked to be destroyed.
This commit is contained in:
@@ -216,6 +216,7 @@ qof_collection_lookup_entity (const QofCollection *col, const GncGUID * guid)
|
||||
if (guid == NULL) return NULL;
|
||||
ent = static_cast<QofInstance*>(g_hash_table_lookup (col->hash_of_entities,
|
||||
guid));
|
||||
if (qof_instance_get_destroying(ent)) return NULL;
|
||||
return ent;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user