Boris Zbarsky (:bz) <
bzba...@mit.edu> has not granted Mike de Boer
[:mikedeboer] <
mde...@mozilla.com>'s request for superreview:
------- Additional Comments from Boris Zbarsky (:bz) <
bzba...@mit.edu>
>+ aPostStream = static_cast<nsIInputStream*>(postData);
Why is that ok? Seems like that will leave aPostStream dangling once postData
goes out of scope...
You probably want to have an on-stack nsCOMPtr that gets initialized to
aPostStream and changed here as needed and used elsewhere in this function.