[vala] codegen: Fix is_reference_counting() result for interfaces
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codegen: Fix is_reference_counting() result for interfaces
- Date: Fri, 14 Oct 2011 18:25:38 +0000 (UTC)
commit de63ac60a21b6a56f1d251de3dbef969eaf428c6
Author: Luca Bruno <lucabru src gnome org>
Date: Fri Oct 14 20:21:42 2011 +0200
codegen: Fix is_reference_counting() result for interfaces
Fixes a regression introduced by commit 5956bf5074d4508c.
Fixes bug 661620.
codegen/valaccodebasemodule.vala | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 63ee723..4df61b8 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -5605,7 +5605,13 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
}
public static bool is_reference_counting (TypeSymbol sym) {
- return get_ccode_ref_function (sym) != null;
+ if (sym is Class) {
+ return get_ccode_ref_function (sym) != null;
+ } else if (sym is Interface) {
+ return true;
+ } else {
+ return false;
+ }
}
public static bool get_ccode_ref_function_void (Class cl) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]