[Xfce4-commits] <xfce4-xkb-plugin:master> Don't leak XklConfigRec.
Jérôme Guelfucci
noreply at xfce.org
Fri Apr 29 11:38:02 CEST 2011
Updating branch refs/heads/master
to 6a25b3b1581fa62352f7bd5a0f79b121f8aecfa3 (commit)
from 5b8e84bbc9c8035a0d328e4e009dd39bf88dad1f (commit)
commit 6a25b3b1581fa62352f7bd5a0f79b121f8aecfa3
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Fri Apr 29 10:40:18 2011 +0200
Don't leak XklConfigRec.
panel-plugin/xkb-config.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/xkb-config.c b/panel-plugin/xkb-config.c
index 7712a12..0f0f2ca 100644
--- a/panel-plugin/xkb-config.c
+++ b/panel-plugin/xkb-config.c
@@ -238,11 +238,12 @@ xkb_config_finalize (void)
{
xkb_config_free ();
+ xkl_engine_stop_listen (config->engine, XKLL_TRACK_KEYBOARD_STATE);
+ g_object_unref (config->config_rec);
+
g_free (config);
gdk_window_remove_filter (NULL, (GdkFilterFunc) handle_xevent, NULL);
-
- xkl_engine_stop_listen (config->engine, XKLL_TRACK_KEYBOARD_STATE);
}
static gint
More information about the Xfce4-commits
mailing list