mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 13:55:35 +00:00
inetcomm: Give a name to the critical sections and delete them when done.
This commit is contained in:
parent
4db0d0da19
commit
f7b22f6547
|
@ -104,6 +104,8 @@ static ULONG WINAPI MimeInternat_Release( IMimeInternational *iface )
|
|||
list_remove(&charset->entry);
|
||||
HeapFree(GetProcessHeap(), 0, charset);
|
||||
}
|
||||
This->cs.DebugInfo->Spare[0] = 0;
|
||||
DeleteCriticalSection(&This->cs);
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
}
|
||||
|
||||
|
@ -527,6 +529,7 @@ HRESULT MimeInternational_Construct(IMimeInternational **internat)
|
|||
global_internat->IMimeInternational_iface.lpVtbl = &mime_internat_vtbl;
|
||||
global_internat->refs = 0;
|
||||
InitializeCriticalSection(&global_internat->cs);
|
||||
global_internat->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": global_internat.cs");
|
||||
|
||||
list_init(&global_internat->charsets);
|
||||
global_internat->next_charset_handle = 0;
|
||||
|
|
Loading…
Reference in a new issue