[vala] codegen: Use destroy_value in destroy function wrappers



commit afcd8b5c55fa8480ce138d24923b0d8884f89bf4
Author: Luca Bruno <lucabru src gnome org>
Date:   Wed May 4 11:48:00 2011 +0200

    codegen: Use destroy_value in destroy function wrappers

 codegen/valaccodebasemodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index d4e481d..7613341 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -2627,7 +2627,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
 
 				push_function (function);
 
-				ccode.add_expression (get_unref_expression (new CCodeIdentifier ("var"), type, null, true));
+				ccode.add_expression (destroy_value (new GLibValue (type, new CCodeIdentifier ("var")), true));
 
 				pop_function ();
 



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