[nautilus] icon-info: plug a leak
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] icon-info: plug a leak
- Date: Tue, 7 Dec 2010 00:09:41 +0000 (UTC)
commit 705d8144e5509d7926adec8af3d638b2e88fd837
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Dec 7 01:07:50 2010 +0100
icon-info: plug a leak
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 6aaf678..fc052a7 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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]