icon-info: plug a leak

This commit is contained in:
Cosimo Cecchi 2010-12-07 01:07:50 +01:00
parent 55869c3c65
commit 705d8144e5

View file

@ -427,7 +427,13 @@ nautilus_icon_info_lookup (GIcon *icon,
pixbuf = NULL; pixbuf = NULL;
} }
return nautilus_icon_info_new_for_pixbuf (pixbuf); icon_info = nautilus_icon_info_new_for_pixbuf (pixbuf);
if (pixbuf != NULL) {
g_object_unref (pixbuf);
}
return icon_info;
} }
} }