[gimp] app: don't call g_object_set_data() on a NULL object
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't call g_object_set_data() on a NULL object
- Date: Thu, 9 Dec 2010 19:56:13 +0000 (UTC)
commit d91a1d5b6c81eea058e246b85a2f33eb3f1bc720
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]