[gnome-settings-daemon] xsettings: Plug a mem leak
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] xsettings: Plug a mem leak
- Date: Thu, 3 Nov 2011 11:10:59 +0000 (UTC)
commit 65906add4443433a092e7c205c608c40e509acf2
Author: Christian Persch <chpe gnome org>
Date: Wed Nov 2 14:06:47 2011 +0100
xsettings: Plug a mem leak
==24379== 9 bytes in 1 blocks are definitely lost in loss record 1,324 of 6,164
==24379== at 0x402AD89: malloc (vg_replace_malloc.c:236)
==24379== by 0x4A62C3B: standard_malloc (gmem.c:88)
==24379== by 0x4A631B0: g_malloc (gmem.c:164)
==24379== by 0x4A7B687: g_strconcat (gstrfuncs.c:325)
==24379== by 0x7DBC77C: update_property (gsd-xsettings-manager.c:338)
==24379== by 0x7DBCBE1: update_xft_settings (gsd-xsettings-manager.c:375)
Bug #663239.
plugins/xsettings/gsd-xsettings-manager.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/xsettings/gsd-xsettings-manager.c b/plugins/xsettings/gsd-xsettings-manager.c
index c82af08..ae5c1c5 100644
--- a/plugins/xsettings/gsd-xsettings-manager.c
+++ b/plugins/xsettings/gsd-xsettings-manager.c
@@ -498,6 +498,8 @@ update_property (GString *props, const gchar* key, const gchar* value)
} else {
g_string_append_printf (props, "%s:\t%s\n", key, value);
}
+
+ g_free (needle);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]