Re: hh: Avoid handle leak (coverity)
31 Oct
2012
31 Oct
'12
5:12 a.m.
Frédéric Delanoy <frederic.delanoy(a)gmail.com> writes:
@@ -27,9 +27,13 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmds
HMODULE hModule; DOWINMAIN *doWinMain; + int res;
hModule = LoadLibraryA("hhctrl.ocx"); doWinMain = (DOWINMAIN*) GetProcAddress(hModule, "doWinMain");
- return doWinMain(hInst, cmdline); + res = doWinMain(hInst, cmdline); + FreeLibrary(hModule); + + return res;
Freeing things on process exit is not useful. -- Alexandre Julliard julliard(a)winehq.org
4789
Age (days ago)
4789
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard