1
0
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:
Moonchild
2026-04-23 09:14:05 +02:00
committed by roytam1
parent 9e00ce775a
commit cecf760aa5
+1
View File
@@ -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);
}