[vala] Fix ownership of inline allocated arrays



commit 9593ed569ce6206670ec97f829d6a41d24ebf858
Author: Jürg Billeter <j bitron ch>
Date:   Sat Mar 27 20:33:14 2010 +0100

    Fix ownership of inline allocated arrays

 vala/valaparser.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index 23d4b0f..25b0242 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -517,6 +517,7 @@ public class Vala.Parser : CodeVisitor {
 				array_type.fixed_length = true;
 				array_type.length = array_length;
 			}
+			array_type.value_owned = type.value_owned;
 
 			return array_type;
 		}



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