Commit dbc03374 authored by Benjamin Otte's avatar Benjamin Otte

range: Don't leak pointers to discarded gadgets

parent 96e7fbde
......@@ -3972,6 +3972,10 @@ sync_stepper_gadget (GtkRange *range,
if (*gadget_ptr != NULL)
if (*gadget_ptr == priv->grab_location)
stop_scrolling (range);
if (*gadget_ptr == priv->mouse_location)
priv->mouse_location = NULL;
gtk_css_node_set_parent (gtk_css_gadget_get_node (*gadget_ptr), NULL);
gtk_box_gadget_remove_gadget (GTK_BOX_GADGET (priv->contents_gadget), *gadget_ptr);
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