mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
icon-info: plug a leak
This commit is contained in:
parent
55869c3c65
commit
705d8144e5
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue