Frédéric Delanoy : msvfw32: Fix a leak (coverity) .
Module: wine Branch: master Commit: 86544ce98f90cbd8ef504ea63c0bf50063bf7364 URL: http://source.winehq.org/git/wine.git/?a=commit;h=86544ce98f90cbd8ef504ea63c... Author: Frédéric Delanoy <frederic.delanoy(a)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);
participants (1)
-
Alexandre Julliard