diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2010-12-07 01:07:50 +0100 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2010-12-07 01:09:17 +0100 |
commit | 705d8144e5509d7926adec8af3d638b2e88fd837 (patch) | |
tree | a094e5de412c18b61ea8d9eb6e808222f3b2c03f /libnautilus-private/nautilus-icon-info.c | |
parent | 55869c3c65217f1c4386cf489f391eeb519e797d (diff) | |
download | nautilus-705d8144e5509d7926adec8af3d638b2e88fd837.tar.gz |
icon-info: plug a leak
Diffstat (limited to 'libnautilus-private/nautilus-icon-info.c')
-rw-r--r-- | libnautilus-private/nautilus-icon-info.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-icon-info.c b/libnautilus-private/nautilus-icon-info.c index 6aaf678ef..fc052a72d 100644 --- a/libnautilus-private/nautilus-icon-info.c +++ b/libnautilus-private/nautilus-icon-info.c @@ -427,7 +427,13 @@ nautilus_icon_info_lookup (GIcon *icon, 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; } } |