Jacek Caban : urlmon: Fixed accept_mimes leak in tests.

Alexandre Julliard julliard at winehq.org
Thu Jan 7 13:08:36 CST 2010


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Jan  7 13:18:33 2010 +0100

urlmon: Fixed accept_mimes leak in tests.

---

 dlls/urlmon/tests/protocol.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/urlmon/tests/protocol.c b/dlls/urlmon/tests/protocol.c
index afaafcb..d54d00d 100644
--- a/dlls/urlmon/tests/protocol.c
+++ b/dlls/urlmon/tests/protocol.c
@@ -1355,6 +1355,7 @@ static HRESULT WINAPI ProtocolEmul_Start(IInternetProtocol *iface, LPCWSTR szUrl
            "GetBindString(BINDSTRING_ACCEPT_MIMES) failed: %08x\n", hres);
         ok(fetched == 1, "fetched = %d, expected 1\n", fetched);
         ok(!strcmp_ww(acc_mimeW, accept_mimes[0]), "unexpected mimes %s\n", wine_dbgstr_w(accept_mimes[0]));
+        CoTaskMemFree(accept_mimes[0]);
 
         hres = IInternetBindInfo_QueryInterface(pOIBindInfo, &IID_IServiceProvider,
                                                 (void**)&service_provider);




More information about the wine-cvs mailing list