summaryrefslogtreecommitdiff
path: root/capplets/time-admin/src/time-tool.c
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2019-06-10 18:03:27 +0800
committerraveit65 <[email protected]>2019-06-14 12:05:04 +0200
commit8f247df3e36d8c34baa31f1448db67c9028b2d9d (patch)
tree16a20056ebc7762b9ae8a0cc1b6f822d47f71eb6 /capplets/time-admin/src/time-tool.c
parent45dcffe232547b0a56f91efa9b6de0e133c74aa3 (diff)
downloadmate-control-center-8f247df3e36d8c34baa31f1448db67c9028b2d9d.tar.bz2
mate-control-center-8f247df3e36d8c34baa31f1448db67c9028b2d9d.tar.xz
Memory leak: g_error_free(error);
Diffstat (limited to 'capplets/time-admin/src/time-tool.c')
-rw-r--r--capplets/time-admin/src/time-tool.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/capplets/time-admin/src/time-tool.c b/capplets/time-admin/src/time-tool.c
index e8b94af8..e48f9368 100644
--- a/capplets/time-admin/src/time-tool.c
+++ b/capplets/time-admin/src/time-tool.c
@@ -185,12 +185,6 @@ void SetTimeZone(GDBusProxy *proxy,const char *zone)
{
MessageReport(_("Set time zone"),error->message,ERROR);
}
- else
- {
-
- }
-
-
}
static void ChangeSpinBttonState(TimeAdmin *ta,gboolean State)
{
@@ -230,6 +224,7 @@ void ReloadNtp(GDBusProxy *proxy,gboolean state)
if(ret1 == NULL || ret2 == NULL)
{
MessageReport(_("Reload Ntp sync"),error->message,ERROR);
+ g_error_free(error);
}
}
@@ -250,6 +245,7 @@ gboolean ChangeNtpSync(GtkSwitch *widget,gboolean state,gpointer data)
if(ret == NULL)
{
MessageReport(_("Set Ntp sync"),error->message,ERROR);
+ g_error_free(error);
return TRUE;
}
else
@@ -293,12 +289,8 @@ static void SetTime(GDBusProxy *proxy,gint64 TimeSec)
if(ret == NULL)
{
MessageReport(_("Set Ntp sync"),error->message,ERROR);
+ g_error_free(error);
}
- else
- {
-
- }
-
}
void SaveModifyTime (GtkButton *button,gpointer data)
{