[gimp/soc-2010-cage-2] app: don't call g_object_set_data() on a NULL object



commit c7b4633a1b204d9cf768404adc4d2d377cbe40f2
Author: Michael Natterer <mitch gimp org>
Date:   Thu Dec 9 20:55:53 2010 +0100

    app: don't call g_object_set_data() on a NULL object

 app/widgets/gimpdeviceinfo.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpdeviceinfo.c b/app/widgets/gimpdeviceinfo.c
index 7677ed9..7652627 100644
--- a/app/widgets/gimpdeviceinfo.c
+++ b/app/widgets/gimpdeviceinfo.c
@@ -609,8 +609,7 @@ gimp_device_info_set_device (GimpDeviceInfo *info,
       info->device  = NULL;
       info->display = NULL;
 
-      g_object_set_data (G_OBJECT (info->device), GIMP_DEVICE_INFO_DATA_KEY,
-                         NULL);
+      g_object_set_data (G_OBJECT (device), GIMP_DEVICE_INFO_DATA_KEY, NULL);
 
       gimp_device_info_set_mode (info, device->mode);
 



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