Commit 8ead7fe7 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

widl: Make sure to generate freeing calls for all non-simple structures with…

widl: Make sure to generate freeing calls for all non-simple structures with pointers and pointers to user marshalled types.
parent e6f23296
......@@ -2601,7 +2601,9 @@ static int needs_freeing(const attr_list_t *attrs, const type_t *t, int out)
(is_user_type(t)
|| (is_ptr(t)
&& (t->ref->type == RPC_FC_IP
|| is_ptr(t->ref))))
|| (is_struct(t->ref->type) && t->ref->type != RPC_FC_STRUCT)
|| is_ptr(t->ref)
|| is_user_type(t->ref))))
|| (out && is_string_type(attrs, t))
|| is_array(t);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment