[gnome-builder] Revert "vala: Avoid ownership mismatches of container elements to fix some memleaks"
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] Revert "vala: Avoid ownership mismatches of container elements to fix some memleaks"
- Date: Mon, 9 Apr 2018 08:44:37 +0000 (UTC)
commit 1b57711ed414015e7b5273344c8a8433ad0b0a0d
Author: Christian Hergert <chergert redhat com>
Date: Mon Apr 9 01:32:55 2018 -0700
Revert "vala: Avoid ownership mismatches of container elements to fix some memleaks"
This reverts commit 6b736af9ccb91dbaf97f439f7dadcae62914043a.
src/plugins/vala-pack/ide-vala-code-indexer.vala | 2 +-
src/plugins/vala-pack/ide-vala-index.vala | 2 +-
src/plugins/vala-pack/ide-vala-source-file.vala | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/vala-pack/ide-vala-code-indexer.vala
b/src/plugins/vala-pack/ide-vala-code-indexer.vala
index 2de540a21..ad91a3b1b 100644
--- a/src/plugins/vala-pack/ide-vala-code-indexer.vala
+++ b/src/plugins/vala-pack/ide-vala-code-indexer.vala
@@ -102,7 +102,7 @@ namespace Ide
public async GLib.GenericArray<weak Ide.CodeIndexEntry> next_entries_async (GLib.Cancellable?
cancellable)
throws GLib.Error
{
- var ret = new GLib.GenericArray<unowned Ide.CodeIndexEntry> ();
+ var ret = new GLib.GenericArray<Ide.CodeIndexEntry> ();
for (;;)
{
diff --git a/src/plugins/vala-pack/ide-vala-index.vala b/src/plugins/vala-pack/ide-vala-index.vala
index de9fcce4b..2366443a7 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 dc6f7203e..499b035cb 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]