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:
parent
e4cf3f144d
commit
b856e2990b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user