msvcp90: Remove type_info_dtor helper from CREATE_TYPE_INFO_VTABLE macro.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2021-08-18 16:09:02 +02:00 committed by Alexandre Julliard
parent bc05707364
commit a2d8a0ce4e

View file

@ -464,12 +464,7 @@ typedef struct
#endif
#define CREATE_TYPE_INFO_VTABLE\
static void type_info_dtor(type_info * _this) \
{ \
free(_this->name); \
} \
\
#define CREATE_TYPE_INFO_VTABLE \
DEFINE_THISCALL_WRAPPER(type_info_vector_dtor,8) \
void * __thiscall type_info_vector_dtor(type_info * _this, unsigned int flags) \
{ \
@ -478,12 +473,12 @@ void * __thiscall type_info_vector_dtor(type_info * _this, unsigned int flags) \
/* we have an array, with the number of elements stored before the first object */ \
INT_PTR i, *ptr = (INT_PTR *)_this - 1; \
\
for (i = *ptr - 1; i >= 0; i--) type_info_dtor(_this + i); \
for (i = *ptr - 1; i >= 0; i--) free(_this->name); \
free(ptr); \
} \
else \
{ \
type_info_dtor(_this); \
free(_this->name); \
if (flags & 1) free(_this); \
} \
return _this; \