at the end of the transaction the old revision is already released.

This commit is contained in:
Krasimir Angelov
2022-05-23 09:52:25 +02:00
parent 35176cc721
commit 8a7d8ce246

View File

@@ -1098,13 +1098,8 @@ void pgf_commit_transaction(PgfDB *db, PgfRevision revision,
DB_scope scope(db, WRITER_SCOPE);
ref<PgfPGF> new_pgf = db->revision2pgf(revision);
ref<PgfPGF> old_pgf = db->get_active_revision();
db->set_active_revision(new_pgf.as_object());
if (old_pgf != 0)
PgfPGF::release(old_pgf);
db->commit();
} PGF_API_END
}