[vala] codegen: Fix critical with delegate properties



commit d041106cea5167b97796ad5576062a831e40dbe0
Author: Jürg Billeter <j bitron ch>
Date:   Tue Oct 26 20:24:29 2010 +0200

    codegen: Fix critical with delegate properties

 codegen/valaccodememberaccessmodule.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodememberaccessmodule.vala b/codegen/valaccodememberaccessmodule.vala
index 4fc6fac..af62122 100644
--- a/codegen/valaccodememberaccessmodule.vala
+++ b/codegen/valaccodememberaccessmodule.vala
@@ -435,6 +435,7 @@ public class Vala.CCodeMemberAccessModule : CCodeControlFlowModule {
 							emit_temp_var (temp_var);
 							ccall.add_argument (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, ctemp));
 							set_delegate_target (expr, ctemp);
+							set_delegate_target_destroy_notify (expr, new CCodeConstant ("NULL"));
 						}
 					}
 				}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]