=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: msvfw32: Fix a leak (coverity) .
Alexandre Julliard
julliard at winehq.org
Mon Nov 5 13:32:24 CST 2012
Module: wine
Branch: master
Commit: 86544ce98f90cbd8ef504ea63c0bf50063bf7364
URL: http://source.winehq.org/git/wine.git/?a=commit;h=86544ce98f90cbd8ef504ea63c0bf50063bf7364
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Fri Nov 2 23:49:29 2012 +0100
msvfw32: Fix a leak (coverity).
---
dlls/msvfw32/msvideo_main.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/msvfw32/msvideo_main.c b/dlls/msvfw32/msvideo_main.c
index f27d3ec..f418481 100644
--- a/dlls/msvfw32/msvideo_main.c
+++ b/dlls/msvfw32/msvideo_main.c
@@ -1512,7 +1512,10 @@ static BOOL GetFileNamePreview(LPVOID lpofn,BOOL bSave,BOOL bUnicode)
fnGetFileName = (LPVOID)GetProcAddress(hComdlg32, szFunctionName);
if (fnGetFileName == NULL)
+ {
+ FreeLibrary(hComdlg32);
return FALSE;
+ }
/* FIXME: need to add OFN_ENABLEHOOK and our own handler */
ret = fnGetFileName(lpofn);
More information about the wine-cvs
mailing list