[Xfce4-commits] <tumbler:master> Avoid unref of null object.
Nick Schermer
noreply at xfce.org
Fri Oct 28 21:46:01 CEST 2011
Updating branch refs/heads/master
to eeefaee4a6cde670fab8f50ed9ef2e69506a29a1 (commit)
from d929d6109de877b84a5cf0cf0f4542c44ff00ef1 (commit)
commit eeefaee4a6cde670fab8f50ed9ef2e69506a29a1
Author: Nick Schermer <nick at xfce.org>
Date: Fri Oct 28 21:38:29 2011 +0200
Avoid unref of null object.
tumbler/tumbler-file-info.c | 7 +++++--
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;
}
More information about the Xfce4-commits
mailing list