[gnome-shell] StScrollView: null out the right variable in dispose



commit b856e2990ba1ee29379f3f64ee07ef4bb746dee6
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Thu Nov 11 08:37:57 2010 -0500

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c
index fbe0a03..1e30314 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]