fix XMLHTTPRequest.cpp memory leak