mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 23:33:38 +00:00
mshtml: Use unlink and destructor in the vtbl for HTMLStorage.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
parent
392a15cdc9
commit
9541020f16
|
@ -397,14 +397,8 @@ static ULONG WINAPI HTMLStorage_Release(IHTMLStorage *iface)
|
||||||
|
|
||||||
TRACE("(%p) ref=%ld\n", This, ref);
|
TRACE("(%p) ref=%ld\n", This, ref);
|
||||||
|
|
||||||
if(!ref) {
|
if(!ref)
|
||||||
release_session_map_entry(This->session_storage);
|
|
||||||
release_dispex(&This->dispex);
|
release_dispex(&This->dispex);
|
||||||
free(This->filename);
|
|
||||||
CloseHandle(This->mutex);
|
|
||||||
release_props(This);
|
|
||||||
free(This);
|
|
||||||
}
|
|
||||||
|
|
||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
@ -1063,6 +1057,16 @@ static inline HTMLStorage *impl_from_DispatchEx(DispatchEx *iface)
|
||||||
return CONTAINING_RECORD(iface, HTMLStorage, dispex);
|
return CONTAINING_RECORD(iface, HTMLStorage, dispex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void HTMLStorage_destructor(DispatchEx *dispex)
|
||||||
|
{
|
||||||
|
HTMLStorage *This = impl_from_DispatchEx(dispex);
|
||||||
|
release_session_map_entry(This->session_storage);
|
||||||
|
free(This->filename);
|
||||||
|
CloseHandle(This->mutex);
|
||||||
|
release_props(This);
|
||||||
|
free(This);
|
||||||
|
}
|
||||||
|
|
||||||
static HRESULT check_item(HTMLStorage *This, const WCHAR *key)
|
static HRESULT check_item(HTMLStorage *This, const WCHAR *key)
|
||||||
{
|
{
|
||||||
struct session_entry *session_entry;
|
struct session_entry *session_entry;
|
||||||
|
@ -1308,7 +1312,7 @@ static HRESULT HTMLStorage_next_dispid(DispatchEx *dispex, DISPID id, DISPID *pi
|
||||||
}
|
}
|
||||||
|
|
||||||
static const dispex_static_data_vtbl_t HTMLStorage_dispex_vtbl = {
|
static const dispex_static_data_vtbl_t HTMLStorage_dispex_vtbl = {
|
||||||
NULL,
|
HTMLStorage_destructor,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
HTMLStorage_get_dispid,
|
HTMLStorage_get_dispid,
|
||||||
|
|
Loading…
Reference in a new issue