diff options
author | António Fernandes <antoniof@gnome.org> | 2020-12-19 13:20:59 +0000 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2021-01-05 08:50:24 +0000 |
commit | 76b8abd8725b3711fdb520a600a9d29e03aa7bd2 (patch) | |
tree | 9669538fd9ae8ff337d56e0178747482847e2619 /src/nautilus-window-slot.c | |
parent | 44c1b9f3b5d3a2b4c0a19adbe4e7a9601d08a18f (diff) | |
download | nautilus-76b8abd8725b3711fdb520a600a9d29e03aa7bd2.tar.gz |
window-slot: Don't leak icon reference
g_value_set_object() increases the reference count of the passed object
But we already own a reference, so we end up leaking it.
Use g_value_take_object() to reuse the owned reference instead.
Diffstat (limited to 'src/nautilus-window-slot.c')
-rw-r--r-- | src/nautilus-window-slot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c index b5ff00008..32a3590a3 100644 --- a/src/nautilus-window-slot.c +++ b/src/nautilus-window-slot.c @@ -911,7 +911,7 @@ nautilus_window_slot_get_property (GObject *object, case PROP_ICON: { - g_value_set_object (value, nautilus_window_slot_get_icon (self)); + g_value_take_object (value, nautilus_window_slot_get_icon (self)); } break; |