From 43d4be36dd06b69f8ac126c7dcc8c259b0544f7b Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Tue, 2 Jan 2007 16:59:52 +0000 Subject: Add module dependency checking. --- hardinfo2/iconcache.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hardinfo2/iconcache.c') diff --git a/hardinfo2/iconcache.c b/hardinfo2/iconcache.c index 69e411e5..868185e5 100644 --- a/hardinfo2/iconcache.c +++ b/hardinfo2/iconcache.c @@ -44,6 +44,8 @@ GdkPixbuf *icon_cache_get_pixbuf(const gchar *file) g_free(tmp); } + g_object_ref(icon); + return icon; } @@ -72,6 +74,8 @@ GdkPixbuf *icon_cache_get_pixbuf_at_size(const gchar *file, gint wid, gint hei) g_free(tmp); } + g_object_ref(icon); + return icon; } -- cgit v1.2.3