From e6f23296762be53bf184d5a0f3d64c3b0bb8d421 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Mon, 10 Dec 2007 13:30:28 +0000 Subject: [PATCH] widl: Arrays should have freeing code generated on the server side, even if they are [in] parameters. --- tools/widl/typegen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index ae80f93fb64..e40ac790a8e 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -2602,8 +2602,8 @@ static int needs_freeing(const attr_list_t *attrs, const type_t *t, int out) || (is_ptr(t) && (t->ref->type == RPC_FC_IP || is_ptr(t->ref)))) - || (out && (is_string_type(attrs, t) - || is_array(t))); + || (out && is_string_type(attrs, t)) + || is_array(t); } expr_t *get_size_is_expr(const type_t *t, const char *name) -- 2.11.4.GIT