[gnome-photos/gnome-3-22] item-manager: Don't leak the hidden item
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/gnome-3-22] item-manager: Don't leak the hidden item
- Date: Sat, 12 Nov 2016 15:12:33 +0000 (UTC)
commit 3e61bc9bfcd649c75525b6f70c5ec081ee2e3bae
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Nov 5 12:56:25 2016 +0100
item-manager: Don't leak the hidden item
src/photos-item-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index 71fbd41..a33ebe4 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -127,7 +127,7 @@ static void
photos_item_manager_hidden_item_free (PhotosItemManagerHiddenItem *hidden_item)
{
g_free (hidden_item->modes);
- g_object_ref (hidden_item->item);
+ g_object_unref (hidden_item->item);
g_slice_free (PhotosItemManagerHiddenItem, hidden_item);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]