[gnome-settings-daemon/gnome-3-2] common: Plug a mem leak
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-2] common: Plug a mem leak
- Date: Thu, 3 Nov 2011 11:16:03 +0000 (UTC)
commit 88637e8f51dc151a9a063ade6cd6f900d32a5a63
Author: Christian Persch <chpe gnome org>
Date: Wed Nov 2 15:27:39 2011 +0100
common: Plug a mem leak
==4196== 1,105 bytes in 1 blocks are definitely lost in loss record 11,035 of 11,286
==4196== at 0x402AD89: malloc (vg_replace_malloc.c:236)
==4196== by 0x4E6961A: XListInputDevices (XListDev.c:208)
==4196== by 0x6EBEEF3: get_disabled_devices (gsd-input-helper.c:334)
==4196== by 0x7F5F065: gsd_mouse_manager_idle_cb (gsd-mouse-manager.c:1108)
Bug #663239.
plugins/common/gsd-input-helper.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/common/gsd-input-helper.c b/plugins/common/gsd-input-helper.c
index 7b605bf..2b71123 100644
--- a/plugins/common/gsd-input-helper.c
+++ b/plugins/common/gsd-input-helper.c
@@ -351,5 +351,7 @@ get_disabled_devices (GdkDeviceManager *manager)
ret = g_list_prepend (ret, GINT_TO_POINTER (device_info[i].id));
}
+ XFreeDeviceList (device_info);
+
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]