Bug 635782 - LSPAnnotationGatherer::Run should use nsAutoArrayPtr r=jmathies

This commit is contained in:
Cameron McCormack 2011-04-08 10:51:34 +12:00
parent 9c4e74e95e
commit 5ef609b502

View File

@ -95,7 +95,7 @@ LSPAnnotationGatherer::Run()
return NS_ERROR_FAILURE;
}
nsAutoPtr<char> byteArray = new char[size];
nsAutoArrayPtr<char> byteArray(new char[size]);
WSAPROTOCOL_INFOW* providers =
reinterpret_cast<WSAPROTOCOL_INFOW*>(byteArray.get());