Commit 1e319428 authored by Matt Keenan's avatar Matt Keenan Committed by Vincent Untz

[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
parent 13f632a1
...@@ -46,8 +46,6 @@ set_system_time_async (gint64 time, ...@@ -46,8 +46,6 @@ set_system_time_async (gint64 time,
G_SPAWN_ERROR_FAILED, G_SPAWN_ERROR_FAILED,
"Time setting is not supported"); "Time setting is not supported");
callback (data, error); callback (data, error);
g_error_free (error);
} }
if (notify) if (notify)
...@@ -70,8 +68,6 @@ set_system_timezone_async (const gchar *filename, ...@@ -70,8 +68,6 @@ set_system_timezone_async (const gchar *filename,
G_SPAWN_ERROR_FAILED, G_SPAWN_ERROR_FAILED,
"Timezone setting is not supported"); "Timezone setting is not supported");
callback (d, error); callback (d, error);
g_error_free (error);
} }
if (notify) if (notify)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment