From c98d22b243d943a9eb27d13997127e319096ac6d Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Tue, 29 Apr 2008 00:34:38 +0300 Subject: [PATCH] Fix setting of priv in finalize --- src/gtkcompass.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) { -- 2.39.5