Commit 607152c2 authored by Benjamin Berg's avatar Benjamin Berg

action-row: Destroy the contained widget

The GtkBox that contains everything is an internal child which must be
destroyed explicitly.
parent 2abaa61b
......@@ -200,11 +200,15 @@ hdy_action_row_destroy (GtkWidget *widget)
HdyActionRow *self = HDY_ACTION_ROW (widget);
HdyActionRowPrivate *priv = hdy_action_row_get_instance_private (self);
if (priv->box) {
gtk_widget_destroy (GTK_WIDGET (priv->box));
priv->box = NULL;
}
hdy_action_row_set_activatable_widget (self, NULL);
priv->prefixes = NULL;
priv->header = NULL;
priv->box = NULL;
GTK_WIDGET_CLASS (hdy_action_row_parent_class)->destroy (widget);
}
......
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