Bug 799281 - Deleting a transaction may trigger a crash

Update qof_collection_lookup_entity() to prevent returning instances marked to be destroyed.
pull/1914/head
Sherlock 2 years ago committed by GitHub
parent a79c1dd3ce
commit 8d6f748aca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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;
}

Loading…
Cancel
Save