From a103fa9147b8b1c33b60d07a24db02af493306c7 Mon Sep 17 00:00:00 2001 From: "Sergey V. Udaltsov" Date: Mon, 12 Jan 2004 11:56:37 +0000 Subject: [PATCH] Now the GSwitchItXkbConfigInit function clears the memory itself. --- capplets/keyboard/gnome-keyboard-properties-xkb.c | 2 -- gnome-settings-daemon/gnome-settings-keyboard-xkb.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/capplets/keyboard/gnome-keyboard-properties-xkb.c b/capplets/keyboard/gnome-keyboard-properties-xkb.c index 1426efccb..9704330dc 100644 --- a/capplets/keyboard/gnome-keyboard-properties-xkb.c +++ b/capplets/keyboard/gnome-keyboard-properties-xkb.c @@ -233,8 +233,6 @@ enable_disable_restoring (GladeXML * dialog) GConfClient *confClient = gconf_client_get_default (); gboolean enable; - memset (&gswic, 0, sizeof (gswic)); - GSwitchItXkbConfigInit (&gswic, confClient); g_object_unref (confClient); GSwitchItXkbConfigLoad (&gswic); diff --git a/gnome-settings-daemon/gnome-settings-keyboard-xkb.c b/gnome-settings-daemon/gnome-settings-keyboard-xkb.c index 4858e9569..56cc81925 100644 --- a/gnome-settings-daemon/gnome-settings-keyboard-xkb.c +++ b/gnome-settings-daemon/gnome-settings-keyboard-xkb.c @@ -81,8 +81,6 @@ apply_settings (void) if (!initedOk) return; - memset (&gswic, 0, sizeof (gswic)); - confClient = gconf_client_get_default (); GSwitchItXkbConfigInit (&gswic, confClient); g_object_unref (confClient);