browseui: HeapFree after deleting the cs (coverity)
André Hentschel
nerv at dawncrow.de
Wed Oct 24 13:53:06 CDT 2012
CID 714002
---
dlls/browseui/progressdlg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/browseui/progressdlg.c b/dlls/browseui/progressdlg.c
index 7d478cc..598197b 100644
--- a/dlls/browseui/progressdlg.c
+++ b/dlls/browseui/progressdlg.c
@@ -265,9 +265,9 @@ static void ProgressDialog_Destructor(ProgressDialog *This)
heap_free(This->lines[2]);
heap_free(This->cancelMsg);
heap_free(This->title);
- heap_free(This);
This->cs.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&This->cs);
+ heap_free(This);
BROWSEUI_refCount--;
}
--
1.8.0
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list