]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix double free with owned named arguments
authorJürg Billeter <j@bitron.ch>
Sat, 20 Mar 2010 17:33:05 +0000 (18:33 +0100)
committerJürg Billeter <j@bitron.ch>
Sat, 20 Mar 2010 17:33:05 +0000 (18:33 +0100)
Fixes bug 601930.

vala/valanamedargument.vala

index 8fe98d931d190d9692c0b4998d5e5c92116f0721..f758fbb48c7b1fce0603a2178114cc23d463ddc6 100644 (file)
@@ -1,6 +1,6 @@
 /* valanamedargument.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
@@ -75,6 +75,7 @@ public class Vala.NamedArgument : Expression {
                        return false;
                }
 
+               inner.target_type = inner.value_type;
                value_type = inner.value_type;
 
                return !error;