[vala] Do not consider fixed-length arrays as disposable
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Do not consider fixed-length arrays as disposable
- Date: Sat, 16 Oct 2010 18:02:26 +0000 (UTC)
commit df908b94f02bfd8f4c0e062dcc9d8da389ede175
Author: Jürg Billeter <j bitron ch>
Date: Sat Oct 16 19:59:18 2010 +0200
Do not consider fixed-length arrays as disposable
Fixes bug 630184.
vala/valaarraytype.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/vala/valaarraytype.vala b/vala/valaarraytype.vala
index 9c651e7..53a0ed4 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 ();
+ }
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]