[vala] dova: Fix memory management of interfaces
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] dova: Fix memory management of interfaces
- Date: Sat, 5 Jun 2010 08:43:50 +0000 (UTC)
commit 0944192590226ec6d0b296c06d96f2d57f161e65
Author: Jürg Billeter <j bitron ch>
Date: Thu Feb 18 08:32:56 2010 +0100
dova: Fix memory management of interfaces
Fixes bug 609089.
vala/valasymbolresolver.vala | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/vala/valasymbolresolver.vala b/vala/valasymbolresolver.vala
index 15e6382..d5adcd3 100644
--- a/vala/valasymbolresolver.vala
+++ b/vala/valasymbolresolver.vala
@@ -120,6 +120,14 @@ public class Vala.SymbolResolver : CodeVisitor {
}
}
+ if (context.profile == Profile.DOVA) {
+ // all interfaces require Object
+ if (iface.get_prerequisites ().size == 0) {
+ var object_class = (Class) root_symbol.scope.lookup ("Dova").scope.lookup ("Object");
+ iface.add_prerequisite (new ObjectType (object_class));
+ }
+ }
+
current_scope = current_scope.parent_scope;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]