[gnome-notes] keep ref of source so it isn't freed
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes] keep ref of source so it isn't freed
- Date: Sun, 30 May 2021 20:15:35 +0000 (UTC)
commit 0d82f13445361366efffdb914160c327a49614e8
Author: Kévin Commaille <zecakeh tedomum fr>
Date: Tue May 18 12:19:13 2021 +0200
keep ref of source so it isn't freed
src/libbiji/provider/biji-memo-provider.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/libbiji/provider/biji-memo-provider.c b/src/libbiji/provider/biji-memo-provider.c
index 0f8ae285..4d1d48c2 100644
--- a/src/libbiji/provider/biji-memo-provider.c
+++ b/src/libbiji/provider/biji-memo-provider.c
@@ -641,6 +641,7 @@ biji_memo_provider_finalize (GObject *object)
g_hash_table_unref (self->tracker);
g_hash_table_unref (self->items);
g_queue_free_full (self->queue, (GDestroyNotify) memo_item_free);
+ g_object_unref(self->source);
G_OBJECT_CLASS (biji_memo_provider_parent_class)->finalize (object);
}
@@ -660,6 +661,7 @@ biji_memo_provider_set_property (GObject *object,
{
case PROP_SOURCE:
self->source = g_value_get_object (value);
+ g_object_ref(self->source);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]