From: Kaj-Michael Lang Date: Mon, 28 Apr 2008 21:34:38 +0000 (+0300) Subject: Fix setting of priv in finalize X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c98d22b243d943a9eb27d13997127e319096ac6d;p=mapper Fix setting of priv in finalize --- diff --git a/src/gtkcompass.c b/src/gtkcompass.c index 22c8f09..a959bea 100644 --- a/src/gtkcompass.c +++ b/src/gtkcompass.c @@ -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)) {