diff options
author | Ernestas Kulik <ernestask@src.gnome.org> | 2016-11-12 21:34:06 +0200 |
---|---|---|
committer | Ernestas Kulik <ernestask@src.gnome.org> | 2016-11-23 22:10:52 +0200 |
commit | 2dc2983789b97c8faaf69db3a220a5d96ca82e9d (patch) | |
tree | 7f92f1ee35a50f39f888d825b3c66f147206dafb | |
parent | 9a261eb1bb21e74a85542d420bb678d8530791ae (diff) | |
download | nautilus-2dc2983789b97c8faaf69db3a220a5d96ca82e9d.tar.gz |
file: unref emblem
The emblem acquired in apply_emblems_to_icon () is not unreffed as it
should be, since g_emblemed_icon_add_emblem () adds a ref to it.
https://bugzilla.gnome.org/show_bug.cgi?id=774232
-rw-r--r-- | src/nautilus-file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nautilus-file.c b/src/nautilus-file.c index 9ac9b51f6..26a767270 100644 --- a/src/nautilus-file.c +++ b/src/nautilus-file.c @@ -5104,7 +5104,6 @@ apply_emblems_to_icon (NautilusFile *file, NautilusFileIconFlags flags) { GIcon *emblemed_icon; - GEmblem *emblem; GList *emblems, *l; emblemed_icon = NULL; @@ -5112,6 +5111,8 @@ apply_emblems_to_icon (NautilusFile *file, for (l = emblems; l != NULL; l = l->next) { + g_autoptr (GEmblem) emblem = NULL; + if (g_icon_equal (l->data, icon)) { continue; |