Francois Gouget : inetcomm: Give a name to the critical sections and delete them when done.
Alexandre Julliard
julliard at winehq.org
Mon Nov 14 13:34:00 CST 2011
Module: wine
Branch: master
Commit: f7b22f654706b4277b3a461de18ff875f1bcee9f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f7b22f654706b4277b3a461de18ff875f1bcee9f
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Mon Nov 14 15:11:30 2011 +0100
inetcomm: Give a name to the critical sections and delete them when done.
---
dlls/inetcomm/mimeintl.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/inetcomm/mimeintl.c b/dlls/inetcomm/mimeintl.c
index 1b15251..07d3ae5 100644
--- a/dlls/inetcomm/mimeintl.c
+++ b/dlls/inetcomm/mimeintl.c
@@ -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;
More information about the wine-cvs
mailing list