[gthumb] do not unref files returned by g_file_icon_get_file



commit 1c8badcd9642821db9ef9753f23c695e35f06fbd
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Mon Mar 28 19:26:17 2011 +0200

    do not unref files returned by g_file_icon_get_file

 gthumb/gth-icon-cache.c |    1 -
 gthumb/gtk-utils.c      |    2 --
 2 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gthumb/gth-icon-cache.c b/gthumb/gth-icon-cache.c
index f4c25f1..1f9eea0 100644
--- a/gthumb/gth-icon-cache.c
+++ b/gthumb/gth-icon-cache.c
@@ -106,7 +106,6 @@ _gth_icon_cache_get_icon_key (GIcon *icon)
 			key = get_static_string (uri);
 
 			g_free (uri);
-			g_object_unref (file);
 		}
 	}
 
diff --git a/gthumb/gtk-utils.c b/gthumb/gtk-utils.c
index fb5afdd..d9ebec3 100644
--- a/gthumb/gtk-utils.c
+++ b/gthumb/gtk-utils.c
@@ -741,8 +741,6 @@ get_file_icon_pixbuf (GFileIcon *icon,
 		g_free (filename);
 	}
 
-	g_object_unref (file);
-
 	return pixbuf;
 }
 



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