]> err.no Git - mapper/commitdiff
Fix setting of priv in finalize
authorKaj-Michael Lang <milang@tal.org>
Mon, 28 Apr 2008 21:34:38 +0000 (00:34 +0300)
committerKaj-Michael Lang <milang@tal.org>
Mon, 28 Apr 2008 21:34:38 +0000 (00:34 +0300)
src/gtkcompass.c

index 22c8f0903113bc2e46d3df41842b0ac9f63eab73..a959bea002028392f4127cd7764a3281cb9325a3 100644 (file)
@@ -157,10 +157,12 @@ static void
 gtk_compass_finalize(GObject *object)
 {
 GtkCompass *compass;
-GtkCompassPriv *priv=GTK_COMPASS_GET_PRIVATE(compass);
+GtkCompassPriv *priv;
        
 g_return_if_fail(GTK_IS_COMPASS(object));
 compass=GTK_COMPASS(object);
+priv=GTK_COMPASS_GET_PRIVATE(compass);
+
 g_source_remove(priv->esid);
 
 if (GTK_WIDGET(object)->parent && GTK_WIDGET_MAPPED(object)) {