1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-09-28 14:55:26 +00:00

history-box: Fix clearing signal handler

By the time g_clear_signal_handler() was invoked self->model had already
been NULL'ed, so clear the signal before clearing the model.
This commit is contained in:
Evangelos Ribeiro Tzaras 2023-01-11 18:14:36 +01:00
parent b6e0d3dba8
commit 56891363cb

View file

@ -227,9 +227,9 @@ dispose (GObject *object)
{
CallsHistoryBox *self = CALLS_HISTORY_BOX (object);
g_clear_signal_handler (&self->model_changed_handler_id, self->model);
g_clear_object (&self->slice_model);
g_clear_object (&self->model);
g_clear_signal_handler (&self->model_changed_handler_id, self->model);
G_OBJECT_CLASS (calls_history_box_parent_class)->dispose (object);
}