[gnome-builder/gnome-builder-3-28] Revert "vala: Avoid ownership mismatches of container elements to fix some memleaks"



commit 3b6bbc3a4edb652988522a3ffe2e49f89d411809
Author: Christian Hergert <chergert redhat com>
Date:   Mon Apr 9 01:45:12 2018 -0700

    Revert "vala: Avoid ownership mismatches of container elements to fix some memleaks"
    
    This reverts commit ce55b5b281b9003089d57743c5258ca9a4f1c8f2.

 src/plugins/vala-pack/ide-vala-index.vala       | 2 +-
 src/plugins/vala-pack/ide-vala-source-file.vala | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/vala-pack/ide-vala-index.vala b/src/plugins/vala-pack/ide-vala-index.vala
index ff59a76de..f3a2cb0f2 100644
--- a/src/plugins/vala-pack/ide-vala-index.vala
+++ b/src/plugins/vala-pack/ide-vala-index.vala
@@ -284,7 +284,7 @@ namespace Ide
                                              GLib.Cancellable? cancellable)
                        throws GLib.Error
                {
-                       GLib.GenericArray<unowned UnsavedFile>? unsaved_files_copy = null;
+                       GLib.GenericArray<UnsavedFile>? unsaved_files_copy = null;
 
                        if (unsaved_files != null) {
                                unsaved_files_copy = unsaved_files.to_array ();
diff --git a/src/plugins/vala-pack/ide-vala-source-file.vala b/src/plugins/vala-pack/ide-vala-source-file.vala
index 4b01f8f3a..1e2a25816 100644
--- a/src/plugins/vala-pack/ide-vala-source-file.vala
+++ b/src/plugins/vala-pack/ide-vala-source-file.vala
@@ -135,7 +135,7 @@ namespace Ide
 
                public Ide.Diagnostics? diagnose ()
                {
-                       var ar = new GLib.GenericArray<unowned Ide.Diagnostic> ();
+                       var ar = new GLib.GenericArray<Ide.Diagnostic> ();
                        foreach (var diag in this.diagnostics) {
                                ar.add (diag);
                        }


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