mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:35:33 +00:00
mshtml: Use unlink and destructor in the vtbl for HTMLOptionElementFactory.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
parent
df6316cdbc
commit
67d7cb3a62
|
@ -487,10 +487,8 @@ static ULONG WINAPI HTMLOptionElementFactory_Release(IHTMLOptionElementFactory *
|
|||
|
||||
TRACE("(%p) ref=%ld\n", This, ref);
|
||||
|
||||
if(!ref) {
|
||||
if(!ref)
|
||||
release_dispex(&This->dispex);
|
||||
free(This);
|
||||
}
|
||||
|
||||
return ref;
|
||||
}
|
||||
|
@ -591,6 +589,12 @@ static inline HTMLOptionElementFactory *HTMLOptionElementFactory_from_DispatchEx
|
|||
return CONTAINING_RECORD(iface, HTMLOptionElementFactory, dispex);
|
||||
}
|
||||
|
||||
static void HTMLOptionElementFactory_destructor(DispatchEx *dispex)
|
||||
{
|
||||
HTMLOptionElementFactory *This = HTMLOptionElementFactory_from_DispatchEx(dispex);
|
||||
free(This);
|
||||
}
|
||||
|
||||
static HRESULT HTMLOptionElementFactory_value(DispatchEx *dispex, LCID lcid,
|
||||
WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei,
|
||||
IServiceProvider *caller)
|
||||
|
@ -629,7 +633,7 @@ static const tid_t HTMLOptionElementFactory_iface_tids[] = {
|
|||
};
|
||||
|
||||
static const dispex_static_data_vtbl_t HTMLOptionElementFactory_dispex_vtbl = {
|
||||
NULL,
|
||||
HTMLOptionElementFactory_destructor,
|
||||
NULL,
|
||||
HTMLOptionElementFactory_value,
|
||||
NULL,
|
||||
|
|
Loading…
Reference in a new issue