summaryrefslogtreecommitdiff
path: root/vala/valamemorymanager.vala
diff options
context:
space:
mode:
Diffstat (limited to 'vala/valamemorymanager.vala')
-rw-r--r--vala/valamemorymanager.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valamemorymanager.vala b/vala/valamemorymanager.vala
index 9399d227d..2449c835c 100644
--- a/vala/valamemorymanager.vala
+++ b/vala/valamemorymanager.vala
@@ -216,7 +216,7 @@ public class Vala.MemoryManager : CodeVisitor {
&& ((param.type_reference.data_type != null
&& param.type_reference.data_type.is_reference_type ())
|| param.type_reference.type_parameter != null)) {
- bool is_ref = param.type_reference.takes_ownership;
+ bool is_ref = param.type_reference.transfers_ownership;
if (is_ref && param.type_reference.type_parameter != null) {
if (expr.call is MemberAccess) {
var ma = (MemberAccess) expr.call;
@@ -259,7 +259,7 @@ public class Vala.MemoryManager : CodeVisitor {
&& ((param.type_reference.data_type != null
&& param.type_reference.data_type.is_reference_type ())
|| param.type_reference.type_parameter != null)) {
- bool is_ref = param.type_reference.takes_ownership;
+ bool is_ref = param.type_reference.transfers_ownership;
if (is_ref && param.type_reference.type_parameter != null) {
var param_type = SemanticAnalyzer.get_actual_type (expr.type_reference, msym, param.type_reference, expr);
if (param_type != null) {