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:
parent
0bd6d7f2a5
commit
9703b1e43e
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue