Commit 3ab623e3 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Fix a test crash

parent f052710b
......@@ -74,12 +74,14 @@ gtk_range_accessible_finalize (GObject *object)
GtkAdjustment *adj;
widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (object));
adj = gtk_range_get_adjustment (GTK_RANGE (widget));
if (adj)
g_signal_handlers_disconnect_by_func (adj,
gtk_range_accessible_value_changed,
range);
if (widget)
{
adj = gtk_range_get_adjustment (GTK_RANGE (widget));
if (adj)
g_signal_handlers_disconnect_by_func (adj,
gtk_range_accessible_value_changed,
range);
}
if (range->action_idle_handler)
{
......
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