[gnome-builder/wip/gtk4-port] libide/foundry: ensure ref for hashtable key/value
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] libide/foundry: ensure ref for hashtable key/value
- Date: Fri, 1 Jul 2022 00:10:11 +0000 (UTC)
commit 0f0bce0b354441ca603aa2ea39ffffdb4259fed4
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 30 17:10:07 2022 -0700
libide/foundry: ensure ref for hashtable key/value
src/libide/foundry/ide-run-commands.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/foundry/ide-run-commands.c b/src/libide/foundry/ide-run-commands.c
index 92737f519..c2d08feef 100644
--- a/src/libide/foundry/ide-run-commands.c
+++ b/src/libide/foundry/ide-run-commands.c
@@ -130,7 +130,9 @@ ide_run_commands_list_commands_cb (GObject *object,
else
g_list_store_append (self->models, model);
- g_hash_table_insert (self->provider_to_model, provider, model);
+ g_hash_table_insert (self->provider_to_model,
+ g_object_ref (provider),
+ g_object_ref (model));
IDE_EXIT;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]