1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-12 07:37:35 +00:00

best-match: disconnect old signal handlers

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-04-05 07:25:31 +02:00
parent 0bd6d7f2a5
commit 9703b1e43e

View file

@ -321,6 +321,8 @@ calls_best_match_set_phone_number (CallsBestMatch *self,
if (phone_number[0] != '\0') if (phone_number[0] != '\0')
self->phone_number = g_strdup (phone_number); self->phone_number = g_strdup (phone_number);
if (self->view)
g_signal_handlers_disconnect_by_data (self->view, self);
g_clear_object (&self->view); g_clear_object (&self->view);
if (self->phone_number) { if (self->phone_number) {