mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-16 14:56:03 +00:00
manager: Respect object life cycle for signal handlers
Don't call signal handlers after the manager has been disposed.
This commit is contained in:
parent
f485215a9f
commit
34d4e854bc
1 changed files with 5 additions and 4 deletions
|
@ -365,10 +365,11 @@ add_origin (CallsManager *self, CallsOrigin *origin)
|
||||||
|
|
||||||
g_list_store_append (self->origins, origin);
|
g_list_store_append (self->origins, origin);
|
||||||
|
|
||||||
g_signal_connect (origin,
|
g_signal_connect_object (origin,
|
||||||
"message",
|
"message",
|
||||||
G_CALLBACK (on_message),
|
G_CALLBACK (on_message),
|
||||||
self);
|
self,
|
||||||
|
G_CONNECT_AFTER);
|
||||||
|
|
||||||
g_signal_connect_object (origin,
|
g_signal_connect_object (origin,
|
||||||
"notify::country-code",
|
"notify::country-code",
|
||||||
|
|
Loading…
Reference in a new issue