mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-23 20:15:32 +00:00
application: Don't leak CallsManager
This commit is contained in:
parent
2f3f55c831
commit
813103e684
1 changed files with 6 additions and 0 deletions
|
@ -66,6 +66,7 @@ struct _CallsApplication {
|
|||
CallsMainWindow *main_window;
|
||||
CallsCallWindow *call_window;
|
||||
CallsDBusManager *dbus_manager;
|
||||
CallsManager *manager;
|
||||
|
||||
char *uri;
|
||||
guint id_sigterm;
|
||||
|
@ -627,6 +628,9 @@ start_proper (CallsApplication *self)
|
|||
|
||||
gtk_app = GTK_APPLICATION (self);
|
||||
|
||||
self->manager = calls_manager_get_default ();
|
||||
g_assert (self->manager);
|
||||
|
||||
self->ringer = calls_ringer_new ();
|
||||
g_assert (self->ringer != NULL);
|
||||
|
||||
|
@ -740,6 +744,8 @@ finalize (GObject *object)
|
|||
g_clear_object (&self->record_store);
|
||||
g_clear_object (&self->ringer);
|
||||
g_clear_object (&self->notifier);
|
||||
g_clear_object (&self->manager);
|
||||
|
||||
g_free (self->uri);
|
||||
|
||||
G_OBJECT_CLASS (calls_application_parent_class)->finalize (object);
|
||||
|
|
Loading…
Reference in a new issue