[gnome-builder/wip/gtk4-port] plugins/cargo: dont leak stage object



commit dfa55a2760fcc003a4f36eaf1096df3f53db80f4
Author: Christian Hergert <chergert redhat com>
Date:   Wed May 25 16:30:20 2022 -0700

    plugins/cargo: dont leak stage object

 src/plugins/cargo/gbp-cargo-pipeline-addin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/cargo/gbp-cargo-pipeline-addin.c b/src/plugins/cargo/gbp-cargo-pipeline-addin.c
index ad0123289..124f40324 100644
--- a/src/plugins/cargo/gbp-cargo-pipeline-addin.c
+++ b/src/plugins/cargo/gbp-cargo-pipeline-addin.c
@@ -77,7 +77,7 @@ gbp_cargo_pipeline_addin_load (IdePipelineAddin *addin,
   g_autoptr(IdeSubprocessLauncher) fetch_launcher = NULL;
   g_autoptr(IdeSubprocessLauncher) build_launcher = NULL;
   g_autoptr(IdeSubprocessLauncher) clean_launcher = NULL;
-  IdePipelineStage *stage;
+  g_autoptr(IdePipelineStage) stage = NULL;
   g_autofree char *project_dir = NULL;
   g_autofree char *cargo = NULL;
   IdeBuildSystem *build_system;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]