mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 13:58:49 +00:00
[network] Hold strong ref in nsDownloader::OnDataAvailable.
This commit is contained in:
@@ -109,6 +109,7 @@ nsDownloader::OnDataAvailable(nsIRequest *request, nsISupports *ctxt,
|
||||
nsIInputStream *inStr,
|
||||
uint64_t sourceOffset, uint32_t count)
|
||||
{
|
||||
RefPtr<nsDownloader> self(this);
|
||||
uint32_t n;
|
||||
return inStr->ReadSegments(ConsumeData, this, count, &n);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user