[vala/staging] Fix regression
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] Fix regression
- Date: Thu, 4 Sep 2014 16:28:18 +0000 (UTC)
commit ed7fa5e781afe267ffc318b7dc9cdc3e5641c36e
Author: Luca Bruno <luca bruno immobiliare it>
Date: Thu Sep 4 18:26:21 2014 +0200
Fix regression
vala/valasemanticanalyzer.vala | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala
index 0cdd878..2f1be1b 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -892,8 +892,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
public static Expression create_temp_access (LocalVariable local, DataType? target_type) {
Expression temp_access = new MemberAccess.simple (local.name, local.source_reference);
- var target_owned = target_type == null || target_type.value_owned;
- if (target_owned && local.variable_type.is_disposable ()) {
+ if (local.variable_type.is_disposable ()) {
temp_access = new ReferenceTransferExpression (temp_access, local.source_reference);
temp_access.target_type = target_type != null ? target_type.copy () :
local.variable_type.copy ();
temp_access.target_type.value_owned = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]