1
0
Fork 0
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:
Evangelos Ribeiro Tzaras 2023-03-16 11:23:36 +01:00
parent f485215a9f
commit 34d4e854bc

View file

@ -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",