Commit 5dca0cdc authored by Benjamin Berg's avatar Benjamin Berg Committed by Guido Gunther

combo-row: Fix memory leak

g_list_model_get_item returns a referenced GObject which needs to be
parent 4937f4dc
......@@ -118,7 +118,7 @@ static void
update (HdyComboRow *self)
HdyComboRowPrivate *priv = hdy_combo_row_get_instance_private (self);
gpointer item;
g_autoptr(GObject) item = NULL;
GtkWidget *widget;
gtk_container_foreach (GTK_CONTAINER (priv->current), (GtkCallback) gtk_widget_destroy, NULL);
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