Jeremy Drake : oleaut32/tests: Fix double GlobalFree in olepicture tests.

Alexandre Julliard julliard at winehq.org
Tue Dec 16 08:40:42 CST 2008


Module: wine
Branch: master
Commit: 970a500fb431b7d729c8ddb959d3c2a80403e28d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=970a500fb431b7d729c8ddb959d3c2a80403e28d

Author: Jeremy Drake <wine at jdrake.com>
Date:   Mon Dec 15 23:41:47 2008 -0800

oleaut32/tests: Fix double GlobalFree in olepicture tests.

---

 dlls/oleaut32/tests/olepicture.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/dlls/oleaut32/tests/olepicture.c b/dlls/oleaut32/tests/olepicture.c
index 89e99dd..2b5b8bb 100644
--- a/dlls/oleaut32/tests/olepicture.c
+++ b/dlls/oleaut32/tests/olepicture.c
@@ -525,8 +525,6 @@ static void test_apm()
     ole_expect(IPicture_get_hPal(pict, &handle), E_FAIL);
     IPicture_Release(pict);
     IStream_Release(stream);
-    GlobalUnlock(hglob);
-    GlobalFree(hglob);
 }
 
 static void test_metafile(void)
@@ -545,8 +543,6 @@ static void test_metafile(void)
     ole_expect(OleLoadPictureEx(stream, sizeof(metafile), TRUE, &IID_IPicture, 100, 100, 0, (LPVOID *)&pict), E_FAIL);
 
     IStream_Release(stream);
-    GlobalUnlock(hglob);
-    GlobalFree(hglob);
 }
 
 static void test_enhmetafile(void)
@@ -584,8 +580,6 @@ static void test_enhmetafile(void)
 
     IPicture_Release(pict);
     IStream_Release(stream);
-    GlobalUnlock(hglob);
-    GlobalFree(hglob);
 }
 
 static void test_Render(void)




More information about the wine-cvs mailing list