[gnome-builder/gnome-builder-3-28] pipeline: use unref, not free
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-28] pipeline: use unref, not free
- Date: Mon, 18 Jun 2018 23:31:00 +0000 (UTC)
commit c12b7a129f84f57f9dc177a8b31cdfb5946c68fc
Author: Christian Hergert <chergert redhat com>
Date: Mon Jun 18 16:30:25 2018 -0700
pipeline: use unref, not free
This has an unpredictable outcome in terms of leaking
since we can't provide the extra parameter.
src/libide/buildsystem/ide-build-pipeline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/buildsystem/ide-build-pipeline.c b/src/libide/buildsystem/ide-build-pipeline.c
index 82364ac7a..f7f0d1f85 100644
--- a/src/libide/buildsystem/ide-build-pipeline.c
+++ b/src/libide/buildsystem/ide-build-pipeline.c
@@ -1247,7 +1247,7 @@ ide_build_pipeline_finalize (GObject *object)
g_clear_pointer (&self->errfmts, g_array_unref);
g_clear_pointer (&self->errfmt_top_dir, g_free);
g_clear_pointer (&self->errfmt_current_dir, g_free);
- g_clear_pointer (&self->chained_bindings, g_ptr_array_free);
+ g_clear_pointer (&self->chained_bindings, g_ptr_array_unref);
G_OBJECT_CLASS (ide_build_pipeline_parent_class)->finalize (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]