Commit a2d8a0ce authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcp90: Remove type_info_dtor helper from CREATE_TYPE_INFO_VTABLE macro.

parent bc057073
......@@ -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; \
......
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