aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/iconcache.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-02 16:59:52 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-02 16:59:52 +0000
commit43d4be36dd06b69f8ac126c7dcc8c259b0544f7b (patch)
tree71baa5a3169dedc54ce4e4e9e45e78be6803105c /hardinfo2/iconcache.c
parent4e082dd27545c503e6ee1440e45032f93216631a (diff)
Add module dependency checking.
Diffstat (limited to 'hardinfo2/iconcache.c')
-rw-r--r--hardinfo2/iconcache.c4
1 files changed, 4 insertions, 0 deletions
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;
}