StScrollView: null out the right variable in dispose

We weren't properly nulling out the vadjustment variable in dispose()
which meant in the case of explicit-destroy followed some time later
by garbage collection and disposing the actor again we would crash.
This commit is contained in:
Owen W. Taylor 2010-11-11 08:37:57 -05:00
parent e4cf3f144d
commit b856e2990b

View File

@ -284,7 +284,7 @@ st_scroll_view_dispose (GObject *object)
{
g_object_run_dispose (G_OBJECT (priv->vadjustment));
g_object_unref (priv->vadjustment);
priv->hadjustment = NULL;
priv->vadjustment = NULL;
}
/* since it's impossible to get a handle to these actors, we can