[vala] Generate correct unref expressions for subtypes of special cases
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Generate correct unref expressions for subtypes of special cases
- Date: Sun, 24 Jun 2012 16:10:43 +0000 (UTC)
commit 19dd72d1d0657993485b8dca566d541ca2012853
Author: Evan Nemerson <evan coeus-group com>
Date: Sun Jun 24 18:09:36 2012 +0200
Generate correct unref expressions for subtypes of special cases
Fixes bug 617377.
codegen/valaccodebasemodule.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index fd7fe17..3b80a9c 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -3181,10 +3181,10 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
if (context.profile == Profile.GOBJECT) {
if (type.data_type != null && !is_reference_counting (type.data_type) &&
- (type.data_type == gstringbuilder_type
- || type.data_type == garray_type
- || type.data_type == gbytearray_type
- || type.data_type == gptrarray_type)) {
+ (type.data_type.is_subtype_of (gstringbuilder_type)
+ || type.data_type.is_subtype_of (garray_type)
+ || type.data_type.is_subtype_of (gbytearray_type)
+ || type.data_type.is_subtype_of (gptrarray_type))) {
ccall.add_argument (new CCodeConstant ("TRUE"));
} else if (type.data_type == gthreadpool_type) {
ccall.add_argument (new CCodeConstant ("FALSE"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]