From: Luca Bruno Date: Wed, 4 May 2011 09:34:52 +0000 (+0200) Subject: codegen: Use destroy_value in method calls X-Git-Tag: 0.13.0~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=578f01df8780f4d45603d09e4f0c4895bfca1ceb;p=thirdparty%2Fvala.git codegen: Use destroy_value in method calls --- diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala index f7abf5ebd..ce4539328 100644 --- a/codegen/valaccodemethodcallmodule.vala +++ b/codegen/valaccodemethodcallmodule.vala @@ -771,7 +771,7 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule { if (requires_destroy (arg.value_type)) { // unref old value - ccode.add_expression (get_unref_expression (get_cvalue (unary.inner), unary.inner.value_type, unary.inner)); + ccode.add_expression (destroy_value (unary.inner.target_value)); } // assign new value