[gnome-builder] ide-config: call g_clear_pointer for run_opts
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] ide-config: call g_clear_pointer for run_opts
- Date: Fri, 10 Dec 2021 20:37:11 +0000 (UTC)
commit 7c997589a8ff6b210cb0eef623ac40123aa57a69
Author: GwenLG <gwenlg xoddark com>
Date: Fri Dec 10 16:22:39 2021 +0100
ide-config: call g_clear_pointer for run_opts
... as it's done for other members
Probaly fixe a memory leak.
src/libide/foundry/ide-config.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/libide/foundry/ide-config.c b/src/libide/foundry/ide-config.c
index 1252fbbfa..9d14cacb8 100644
--- a/src/libide/foundry/ide-config.c
+++ b/src/libide/foundry/ide-config.c
@@ -323,6 +323,7 @@ ide_config_finalize (GObject *object)
g_clear_pointer (&priv->id, g_free);
g_clear_pointer (&priv->post_install_commands, g_strfreev);
g_clear_pointer (&priv->prefix, g_free);
+ g_clear_pointer (&priv->run_opts, g_free);
g_clear_pointer (&priv->runtime_id, g_free);
g_clear_pointer (&priv->app_id, g_free);
g_clear_pointer (&priv->toolchain_id, g_free);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]