1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-05-13 16:49:29 +00:00

main-window: Use gtk_widget_destroy() for windows

Top level widgets should typically call gtk_widget_destroy()
This commit is contained in:
Evangelos Ribeiro Tzaras 2023-03-16 11:54:24 +01:00
parent 47bb3aaa62
commit 23e9cca320

View file

@ -413,7 +413,10 @@ dispose (GObject *object)
CallsMainWindow *self = CALLS_MAIN_WINDOW (object);
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);
}