[gnome-settings-daemon] common: Plug a mem leak



commit 22219f01347da094bdad02f704cfe04491dff767
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 7ad5cbd..b0fc29d 100644
--- a/plugins/common/gsd-input-helper.c
+++ b/plugins/common/gsd-input-helper.c
@@ -410,5 +410,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]