[vala/0.16] codegen: Fix memory leak accessing automatic property with owned getter
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.16] codegen: Fix memory leak accessing automatic property with owned getter
- Date: Sat, 23 Jun 2012 15:54:41 +0000 (UTC)
commit 5da2140b63c53cef6d5dd91663bca6aedaa99d84
Author: JÃrg Billeter <j bitron ch>
Date: Sat Jun 23 16:29:32 2012 +0200
codegen: Fix memory leak accessing automatic property with owned getter
Fixes bug 678630.
codegen/valaccodememberaccessmodule.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodememberaccessmodule.vala b/codegen/valaccodememberaccessmodule.vala
index 09b8ad7..389a1db 100644
--- a/codegen/valaccodememberaccessmodule.vala
+++ b/codegen/valaccodememberaccessmodule.vala
@@ -185,6 +185,7 @@ public abstract class Vala.CCodeMemberAccessModule : CCodeControlFlowModule {
}
} else if (prop.binding == MemberBinding.INSTANCE &&
prop.get_accessor.automatic_body &&
+ !prop.get_accessor.value_type.value_owned &&
current_type_symbol == prop.parent_symbol &&
current_type_symbol is Class &&
prop.base_property == null &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]