summaryrefslogtreecommitdiff
path: root/tumbler
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2011-10-28 21:38:29 +0200
committerNick Schermer <nick@xfce.org>2011-10-28 21:38:29 +0200
commiteeefaee4a6cde670fab8f50ed9ef2e69506a29a1 (patch)
tree9b141df317f4176587cbeb2f51541e2c3a1bce61 /tumbler
parentd929d6109de877b84a5cf0cf0f4542c44ff00ef1 (diff)
downloadtumbler-eeefaee4a6cde670fab8f50ed9ef2e69506a29a1.tar.gz
Avoid unref of null object.
Diffstat (limited to 'tumbler')
-rw-r--r--tumbler/tumbler-file-info.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tumbler/tumbler-file-info.c b/tumbler/tumbler-file-info.c
index ba6db83..45ccebe 100644
--- a/tumbler/tumbler-file-info.c
+++ b/tumbler/tumbler-file-info.c
@@ -307,8 +307,11 @@ tumbler_file_info_load (TumblerFileInfo *info,
g_propagate_error (error, err);
/* release the thumbnail info */
- g_object_unref (info->thumbnail);
- info->thumbnail = NULL;
+ if (info->thumbnail != NULL)
+ {
+ g_object_unref (info->thumbnail);
+ info->thumbnail = NULL;
+ }
return FALSE;
}