[gnome-settings-daemon] wacom: Fix another possible crash



commit 34f6588ec8446d64a7b4ff0a34c3473e137d03a9
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Oct 8 18:30:57 2013 +0200

    wacom: Fix another possible crash
    
    In GVariant handling this time.

 plugins/wacom/gsd-wacom-manager.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 749e0aa..624eb64 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -337,8 +337,6 @@ set_area (GsdWacomDevice  *device,
         } else {
                 wacom_set_property (device, &property);
         }
-
-        g_variant_unref (value);
 }
 
 static void
@@ -353,6 +351,7 @@ reset_area (GsdWacomDevice *device)
         variant = g_variant_new_array (G_VARIANT_TYPE_INT32, values, G_N_ELEMENTS (values));
 
         set_area (device, variant);
+        g_variant_unref (variant);
 }
 
 /* Returns the rotation to apply a device relative to the current rotation of the output */


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