[gnome-panel] [clock] Do not crash when setting time/timezone without PolicyKit



commit 1e319428a2c9a4b72fe5f2e06dcc59a82527e4f2
Author: Matt Keenan <matt keenan sun com>
Date:   Tue Aug 11 20:43:15 2009 +0200

    [clock] Do not crash when setting time/timezone without PolicyKit
    
    The dummy backend was crashing. The GError should be freed by the
    callback handler.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=577831

 applets/clock/set-timezone-dummy.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/applets/clock/set-timezone-dummy.c b/applets/clock/set-timezone-dummy.c
index af2d678..0c1b74d 100644
--- a/applets/clock/set-timezone-dummy.c
+++ b/applets/clock/set-timezone-dummy.c
@@ -46,8 +46,6 @@ set_system_time_async (gint64         time,
 					     G_SPAWN_ERROR_FAILED,
 					     "Time setting is not supported");
 		callback (data, error);
-
-		g_error_free (error);
 	}
 
 	if (notify)
@@ -70,8 +68,6 @@ set_system_timezone_async (const gchar    *filename,
 					     G_SPAWN_ERROR_FAILED,
 					     "Timezone setting is not supported");
 		callback (d, error);
-
-		g_error_free (error);
 	}
 
 	if (notify)



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