mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-16 17:46:23 +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:
parent
b6e0d3dba8
commit
56891363cb
1 changed files with 1 additions and 1 deletions
|
@ -227,9 +227,9 @@ dispose (GObject *object)
|
||||||
{
|
{
|
||||||
CallsHistoryBox *self = CALLS_HISTORY_BOX (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->slice_model);
|
||||||
g_clear_object (&self->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);
|
G_OBJECT_CLASS (calls_history_box_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue