mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-09 13:25:35 +00:00
main-window: Use gtk_widget_destroy() for windows
Top level widgets should typically call gtk_widget_destroy()
This commit is contained in:
parent
47bb3aaa62
commit
23e9cca320
1 changed files with 4 additions and 1 deletions
|
@ -413,7 +413,10 @@ dispose (GObject *object)
|
||||||
CallsMainWindow *self = CALLS_MAIN_WINDOW (object);
|
CallsMainWindow *self = CALLS_MAIN_WINDOW (object);
|
||||||
|
|
||||||
g_clear_object (&self->record_store);
|
g_clear_object (&self->record_store);
|
||||||
g_clear_object (&self->account_overview);
|
if (self->account_overview) {
|
||||||
|
gtk_widget_destroy (GTK_WIDGET (self->account_overview));
|
||||||
|
self->account_overview = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
G_OBJECT_CLASS (calls_main_window_parent_class)->dispose (object);
|
G_OBJECT_CLASS (calls_main_window_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue