]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
dova: Fix memory handling of list, set, and map literals and tuples
authorJürg Billeter <j@bitron.ch>
Fri, 9 Jul 2010 14:19:42 +0000 (16:19 +0200)
committerJürg Billeter <j@bitron.ch>
Fri, 9 Jul 2010 14:19:42 +0000 (16:19 +0200)
Fixes bug 623915.

vala/valalistliteral.vala
vala/valamapliteral.vala
vala/valasetliteral.vala
vala/valatuple.vala

index 9dd6a4ab29f8bab965d0d656ad3d70784de503d1..b5012c4173d8d8072fc8e4e8c798163c74791e58 100644 (file)
@@ -1,6 +1,6 @@
 /* valalistliteral.vala
  *
- * Copyright (C) 2009  Jürg Billeter
+ * Copyright (C) 2009-2010  Jürg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -37,6 +37,8 @@ public class Vala.ListLiteral : Literal {
 
        public override void accept (CodeVisitor visitor) {
                visitor.visit_list_literal (this);
+
+               visitor.visit_expression (this);
        }
 
        public void add_expression (Expression expr) {
index bf50a78ec66453f6b66baf3590265776df522ba9..054babb40d3231eb39af6b1a74e5d10c2274fa66 100644 (file)
@@ -1,6 +1,6 @@
 /* valamapliteral.vala
  *
- * Copyright (C) 2009  Jürg Billeter
+ * Copyright (C) 2009-2010  Jürg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -40,6 +40,8 @@ public class Vala.MapLiteral : Literal {
 
        public override void accept (CodeVisitor visitor) {
                visitor.visit_map_literal (this);
+
+               visitor.visit_expression (this);
        }
 
        public void add_key (Expression expr) {
index 4f490a58155355200683c841a896ee71acbfca95..6a6cc41c1a39d722708ee50c11fd314c561479aa 100644 (file)
@@ -1,6 +1,6 @@
 /* valasetliteral.vala
  *
- * Copyright (C) 2009  Jürg Billeter
+ * Copyright (C) 2009-2010  Jürg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -37,6 +37,8 @@ public class Vala.SetLiteral : Literal {
 
        public override void accept (CodeVisitor visitor) {
                visitor.visit_set_literal (this);
+
+               visitor.visit_expression (this);
        }
 
        public void add_expression (Expression expr) {
index a842ee6da20f9fb3f9d44a8e02bdb5005aee45d6..75d22c4f790845abbcf921c2e593074de8d075cf 100644 (file)
@@ -40,6 +40,8 @@ public class Vala.Tuple : Expression {
 
        public override void accept (CodeVisitor visitor) {
                visitor.visit_tuple (this);
+
+               visitor.visit_expression (this);
        }
 
        public void add_expression (Expression expr) {