application: Shut down graceful on SIGTERM/SIGINT

This will allow cleaning up after ourselves, e.g. closing the record DB.

Fixes: #508
This commit is contained in:
Evangelos Ribeiro Tzaras
2022-11-11 10:01:44 +01:00
parent e1f0b83d25
commit 19f8ac390b
2 changed files with 22 additions and 1 deletions

View File

@@ -666,7 +666,6 @@ dispose (GObject *object)
g_list_store_remove_all (G_LIST_STORE (self));
g_clear_object (&self->repository);
close_adapter (self);
G_OBJECT_CLASS (calls_record_store_parent_class)->dispose (object);
}
@@ -678,6 +677,7 @@ finalize (GObject *object)
CallsRecordStore *self = CALLS_RECORD_STORE (object);
g_free (self->filename);
close_adapter (self);
G_OBJECT_CLASS (calls_record_store_parent_class)->finalize (object);
}