[gthumb] unref the object only if it's not NULL
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] unref the object only if it's not NULL
- Date: Wed, 15 Dec 2010 09:56:34 +0000 (UTC)
commit 8163203a4481321264736b070f8a8b1c7ca39e3b
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Dec 9 11:50:41 2010 +0100
unref the object only if it's not NULL
gthumb/gth-icon-cache.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-icon-cache.c b/gthumb/gth-icon-cache.c
index 1d117cd..cf61180 100644
--- a/gthumb/gth-icon-cache.c
+++ b/gthumb/gth-icon-cache.c
@@ -106,9 +106,8 @@ _gth_icon_cache_get_icon_key (GIcon *icon)
key = get_static_string (filename);
g_free (filename);
+ g_object_unref (file);
}
-
- g_object_unref (file);
}
return key;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]