]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Do not consider fixed-length arrays as disposable
authorJürg Billeter <j@bitron.ch>
Sat, 16 Oct 2010 17:59:18 +0000 (19:59 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 16 Oct 2010 17:59:18 +0000 (19:59 +0200)
Fixes bug 630184.

vala/valaarraytype.vala

index 9c651e739762c3d1cd69247dbfc2680c87b90c4f..53a0ed4c6bc123cdb8c1d08777e39df2008f0a21 100644 (file)
@@ -268,4 +268,11 @@ public class Vala.ArrayType : ReferenceType {
                return result;
        }
 
+       public override bool is_disposable () {
+               if (fixed_length) {
+                       return element_type.is_disposable ();
+               } else {
+                       return base.is_disposable ();
+               }
+       }
 }