mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-10 05:45:32 +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
f9d238f988
commit
93ff933569
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_signal_connect (origin,
|
||||
g_signal_connect_object (origin,
|
||||
"message",
|
||||
G_CALLBACK (on_message),
|
||||
self);
|
||||
self,
|
||||
G_CONNECT_AFTER);
|
||||
|
||||
g_signal_connect_object (origin,
|
||||
"notify::country-code",
|
||||
|
|
Loading…
Reference in a new issue