[Xfce4-commits] r27318 - in xfce4-settings/trunk: . xfce4-settings-helper
Jannis Pohlmann
jannis at xfce.org
Wed Jul 16 21:59:26 CEST 2008
Author: jannis
Date: 2008-07-16 19:59:26 +0000 (Wed, 16 Jul 2008)
New Revision: 27318
Modified:
xfce4-settings/trunk/ChangeLog
xfce4-settings/trunk/xfce4-settings-helper/accessx.c
xfce4-settings/trunk/xfce4-settings-helper/xkb.c
Log:
* xfce4-settings-helper/accessx.c, xfce4-settings-helper/xkb.c: Call
XkbFreeControls prior to XkbFree. This should fix two memory leaks
and hopefully doesn't break anything.
Modified: xfce4-settings/trunk/ChangeLog
===================================================================
--- xfce4-settings/trunk/ChangeLog 2008-07-16 19:48:55 UTC (rev 27317)
+++ xfce4-settings/trunk/ChangeLog 2008-07-16 19:59:26 UTC (rev 27318)
@@ -1,5 +1,11 @@
2008-07-16 Jannis Pohlmann <jannis at xfce.org>
+ * xfce4-settings-helper/accessx.c, xfce4-settings-helper/xkb.c: Call
+ XkbFreeControls prior to XkbFree. This should fix two memory leaks
+ and hopefully doesn't break anything.
+
+2008-07-16 Jannis Pohlmann <jannis at xfce.org>
+
* dialogs/keyboard-settings/main.c: Save property when a new shortcut
is created.
Modified: xfce4-settings/trunk/xfce4-settings-helper/accessx.c
===================================================================
--- xfce4-settings/trunk/xfce4-settings-helper/accessx.c 2008-07-16 19:48:55 UTC (rev 27317)
+++ xfce4-settings/trunk/xfce4-settings-helper/accessx.c 2008-07-16 19:59:26 UTC (rev 27318)
@@ -245,6 +245,7 @@
XkbSetControls (GDK_DISPLAY (), XkbControlsEnabledMask | XkbStickyKeysMask | XkbBounceKeysMask | XkbSlowKeysMask | XkbMouseKeysMask, xkb);
/* free the structure */
+ XkbFreeControls (xkb, XkbAllControlsMask, True);
XFree (xkb);
/* flush errors and pop trap */
Modified: xfce4-settings/trunk/xfce4-settings-helper/xkb.c
===================================================================
--- xfce4-settings/trunk/xfce4-settings-helper/xkb.c 2008-07-16 19:48:55 UTC (rev 27317)
+++ xfce4-settings/trunk/xfce4-settings-helper/xkb.c 2008-07-16 19:59:26 UTC (rev 27318)
@@ -211,6 +211,7 @@
XkbSetControls (GDK_DISPLAY (), XkbRepeatKeysMask, xkb);
/* cleanup */
+ XkbFreeControls (xkb, XkbRepeatKeysMask, True);
XFree (xkb);
}
More information about the Xfce4-commits
mailing list