[gnome-settings-daemon/gnome-3-2] xsettings: Plug a mem leak
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-2] xsettings: Plug a mem leak
- Date: Thu, 3 Nov 2011 11:15:38 +0000 (UTC)
commit c8a487b18f4a2b89947b811ca55a86f41de35df6
Author: Christian Persch <chpe gnome org>
Date: Wed Nov 2 14:04:44 2011 +0100
xsettings: Plug a mem leak
==24379== 4 bytes in 1 blocks are definitely lost in loss record 203 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 0x4A63522: g_malloc_n (gmem.c:381)
==24379== by 0x4A95464: g_variant_dup_strv (gvariant.c:1471)
==24379== by 0x490F110: g_settings_get_strv (gsettings.c:2041)
==24379== by 0x7DBE38C: update_gtk_modules (gsd-xsettings-gtk.c:226)
==24379== 4 bytes in 1 blocks are definitely lost in loss record 204 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 0x4A63522: g_malloc_n (gmem.c:381)
==24379== by 0x4A95464: g_variant_dup_strv (gvariant.c:1471)
==24379== by 0x490F110: g_settings_get_strv (gsettings.c:2041)
==24379== by 0x7DBE3A6: update_gtk_modules (gsd-xsettings-gtk.c:227)
Bug #663239.
plugins/xsettings/gsd-xsettings-gtk.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/xsettings/gsd-xsettings-gtk.c b/plugins/xsettings/gsd-xsettings-gtk.c
index c2a043c..218fa23 100644
--- a/plugins/xsettings/gsd-xsettings-gtk.c
+++ b/plugins/xsettings/gsd-xsettings-gtk.c
@@ -259,6 +259,9 @@ update_gtk_modules (GsdXSettingsGtk *gtk)
} else {
g_free (modules);
}
+
+ g_strfreev (enabled);
+ g_strfreev (disabled);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]