aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-icon-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-icon-factory.c')
-rw-r--r--shell/e-icon-factory.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/e-icon-factory.c b/shell/e-icon-factory.c
index aeccb8f3a6..75ce7377bf 100644
--- a/shell/e-icon-factory.c
+++ b/shell/e-icon-factory.c
@@ -152,8 +152,11 @@ e_icon_factory_get_icon (const char *icon_name,
g_hash_table_insert (name_to_icon, icon->name, icon);
}
- if (mini)
+ if (mini) {
+ gdk_pixbuf_ref (icon->small_pixbuf);
return icon->small_pixbuf;
- else
+ } else {
+ gdk_pixbuf_ref (icon->large_pixbuf);
return icon->large_pixbuf;
+ }
}