[gnome-settings-daemon] wacom: Fix small memleaks in helpers



commit 0715e93ae8fa215e0f5071027ef2c2e8fca16054
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jul 17 10:39:48 2013 +0200

    wacom: Fix small memleaks in helpers

 plugins/wacom/gsd-wacom-led-helper.c  |    1 +
 plugins/wacom/gsd-wacom-oled-helper.c |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-led-helper.c b/plugins/wacom/gsd-wacom-led-helper.c
index ae34612..1924ff3 100644
--- a/plugins/wacom/gsd-wacom-led-helper.c
+++ b/plugins/wacom/gsd-wacom-led-helper.c
@@ -170,6 +170,7 @@ int main (int argc, char **argv)
        ret = 0;
 
 out:
+       g_free (path);
        g_clear_object (&device);
        g_clear_object (&client);
 
diff --git a/plugins/wacom/gsd-wacom-oled-helper.c b/plugins/wacom/gsd-wacom-oled-helper.c
index 520edc2..99be48a 100644
--- a/plugins/wacom/gsd-wacom-oled-helper.c
+++ b/plugins/wacom/gsd-wacom-oled-helper.c
@@ -172,6 +172,9 @@ int main (int argc, char **argv)
        ret = 0;
 
 out:
+       g_free (path);
+       g_free (buffer);
+
        g_clear_object (&device);
        g_clear_object (&client);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]