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 HTMLImageElementFactory.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
parent
9019e969ad
commit
df6316cdbc
|
@ -808,10 +808,8 @@ static ULONG WINAPI HTMLImageElementFactory_Release(IHTMLImageElementFactory *if
|
|||
|
||||
TRACE("(%p) ref=%ld\n", This, ref);
|
||||
|
||||
if(!ref) {
|
||||
if(!ref)
|
||||
release_dispex(&This->dispex);
|
||||
free(This);
|
||||
}
|
||||
|
||||
return ref;
|
||||
}
|
||||
|
@ -941,6 +939,12 @@ static inline HTMLImageElementFactory *impl_from_DispatchEx(DispatchEx *iface)
|
|||
return CONTAINING_RECORD(iface, HTMLImageElementFactory, dispex);
|
||||
}
|
||||
|
||||
static void HTMLImageElementFactory_destructor(DispatchEx *dispex)
|
||||
{
|
||||
HTMLImageElementFactory *This = impl_from_DispatchEx(dispex);
|
||||
free(This);
|
||||
}
|
||||
|
||||
static HRESULT HTMLImageElementFactory_value(DispatchEx *dispex, LCID lcid,
|
||||
WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei,
|
||||
IServiceProvider *caller)
|
||||
|
@ -975,7 +979,7 @@ static const tid_t HTMLImageElementFactory_iface_tids[] = {
|
|||
};
|
||||
|
||||
static const dispex_static_data_vtbl_t HTMLImageElementFactory_dispex_vtbl = {
|
||||
NULL,
|
||||
HTMLImageElementFactory_destructor,
|
||||
NULL,
|
||||
HTMLImageElementFactory_value,
|
||||
NULL,
|
||||
|
|
Loading…
Reference in a new issue