Add minor missing cleanup

this.gc would previously never have been released if GC reap wasn't
recommended and run
This commit is contained in:
Chris Heywood 2020-01-08 11:50:54 +01:00
parent 15561a1108
commit ff6c45c29c

View file

@ -109,6 +109,8 @@ private class Geary.ImapDB.Database : Geary.Db.VersionedDatabase {
if ((recommended & GC.RecommendedOperation.REAP) != 0) {
// run in the background and allow application to continue running
this.gc.reap_async.begin(gc_cancellable, on_reap_async_completed);
} else {
this.gc = null;
}
if (cancellable != null)