From: Jürg Billeter Date: Sat, 16 Oct 2010 17:59:18 +0000 (+0200) Subject: Do not consider fixed-length arrays as disposable X-Git-Tag: 0.11.1~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df908b94f02bfd8f4c0e062dcc9d8da389ede175;p=thirdparty%2Fvala.git Do not consider fixed-length arrays as disposable Fixes bug 630184. --- diff --git a/vala/valaarraytype.vala b/vala/valaarraytype.vala index 9c651e739..53a0ed4c6 100644 --- a/vala/valaarraytype.vala +++ b/vala/valaarraytype.vala @@ -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 (); + } + } }