[Xfce4-commits] <xfce4-xkb-plugin:master> Dont't leak filename when rc could not be opened.
Jérôme Guelfucci
noreply at xfce.org
Fri May 6 10:14:02 CEST 2011
Updating branch refs/heads/master
to 2746e3db5daa20e0cbaa3f6db19c0c73fca24149 (commit)
from 65e812bbb2a7109e715f812a7125f666a0713320 (commit)
commit 2746e3db5daa20e0cbaa3f6db19c0c73fca24149
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Fri May 6 08:43:19 2011 +0200
Dont't leak filename when rc could not be opened.
panel-plugin/xfce4-xkb-plugin.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/panel-plugin/xfce4-xkb-plugin.c b/panel-plugin/xfce4-xkb-plugin.c
index d8df4f2..c8ccae8 100644
--- a/panel-plugin/xfce4-xkb-plugin.c
+++ b/panel-plugin/xfce4-xkb-plugin.c
@@ -254,6 +254,7 @@ xfce_xkb_save_config (XfcePanelPlugin *plugin, t_xkb *xkb)
rcfile = xfce_rc_simple_open (filename, FALSE);
if (!rcfile)
{
+ g_free (filename);
return;
}
More information about the Xfce4-commits
mailing list