aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/idousermenuitem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/idousermenuitem.c b/src/idousermenuitem.c
index 8ceb4ef..03522c7 100644
--- a/src/idousermenuitem.c
+++ b/src/idousermenuitem.c
@@ -400,7 +400,8 @@ ido_user_menu_item_set_icon (IdoUserMenuItem * self, GIcon * icon)
{
g_clear_object (&p->icon);
- p->icon = g_object_ref (icon);
+ if (icon != NULL)
+ p->icon = g_object_ref (icon);
update_avatar (self);
}