oleaut32/tests: Fix double GlobalFree in olepicture tests.
authorJeremy Drake <wine@jdrake.com>
Tue, 16 Dec 2008 07:41:47 +0000 (23:41 -0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 16 Dec 2008 13:08:55 +0000 (14:08 +0100)
dlls/oleaut32/tests/olepicture.c

index 89e99dde3d2a915d0edf9d599d75e03ec8731778..2b5b8bb86eb9d1ef6020a095323e29ae66cffa0c 100644 (file)
@@ -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)