Commit 7906f09c authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko
Browse files

windowcontrols: Unparent children in dispose rather than finalize

parent 642924a0
Pipeline #176570 passed with stages
in 64 minutes and 15 seconds
......@@ -411,12 +411,20 @@ gtk_window_controls_unroot (GtkWidget *widget)
static void
gtk_window_controls_finalize (GObject *object)
gtk_window_controls_dispose (GObject *object)
GtkWindowControls *self = GTK_WINDOW_CONTROLS (object);
clear_controls (self);
G_OBJECT_CLASS (gtk_window_controls_parent_class)->dispose (object);
static void
gtk_window_controls_finalize (GObject *object)
GtkWindowControls *self = GTK_WINDOW_CONTROLS (object);
g_free (self->decoration_layout);
G_OBJECT_CLASS (gtk_window_controls_parent_class)->finalize (object);
......@@ -480,6 +488,7 @@ gtk_window_controls_class_init (GtkWindowControlsClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
object_class->dispose = gtk_window_controls_dispose;
object_class->finalize = gtk_window_controls_finalize;
object_class->get_property = gtk_window_controls_get_property;
object_class->set_property = gtk_window_controls_set_property;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment