From b856e2990ba1ee29379f3f64ee07ef4bb746dee6 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 11 Nov 2010 08:37:57 -0500 Subject: [PATCH] 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. --- src/st/st-scroll-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c index fbe0a03fd..1e30314ff 100644 --- a/src/st/st-scroll-view.c +++ b/src/st/st-scroll-view.c @@ -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