[PATCH] comctl32: free hComctl32 on error (Coverity)

Marcus Meissner meissner at suse.de
Tue Jan 8 19:42:14 CST 2013


CID 713346

Ciao, Marcus
---
 dlls/comctl32/tests/rebar.c |    1 +
 1 Datei geändert, 1 Zeile hinzugefügt(+)

diff --git a/dlls/comctl32/tests/rebar.c b/dlls/comctl32/tests/rebar.c
index 88c931c..287ea24 100644
--- a/dlls/comctl32/tests/rebar.c
+++ b/dlls/comctl32/tests/rebar.c
@@ -1121,6 +1121,7 @@ START_TEST(rebar)
     if (!pInitCommonControlsEx)
     {
         win_skip("InitCommonControlsEx() is missing. Skipping the tests\n");
+        FreeLibrary(hComctl32);
         return;
     }
     iccex.dwSize = sizeof(iccex);
-- 
1.7.10.4




More information about the wine-patches mailing list