[gnome-settings-daemon] common: Fix memleak in device_set_property()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] common: Fix memleak in device_set_property()
- Date: Fri, 25 May 2012 13:03:30 +0000 (UTC)
commit ff5c78e09ec15758cf1ceb5e82dbbb49fe09e60c
Author: Bastien Nocera <hadess hadess net>
Date: Fri May 25 13:57:15 2012 +0100
common: Fix memleak in device_set_property()
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 f06b507..d4ad9c5 100644
--- a/plugins/common/gsd-input-helper.c
+++ b/plugins/common/gsd-input-helper.c
@@ -83,6 +83,8 @@ device_set_property (XDevice *xdevice,
xdevice, prop, realtype, realformat,
PropModeReplace, data, nitems);
+ XFree (data);
+
if (gdk_error_trap_pop ()) {
g_warning ("Error in setting \"%s\" for \"%s\"", property->name, device_name);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]