mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
fix listener leak r+a=mscott,valeski
This commit is contained in:
parent
2c83b5f862
commit
9f48620357
@ -1525,6 +1525,7 @@ nsChannelListener::OnStartRequest(nsIChannel *aChannel, nsISupports *aContext)
|
||||
rv = StreamConvService->AsyncConvertData(from.GetUnicode(), to.GetUnicode(), mNextListener, aChannel,
|
||||
&converterListener);
|
||||
mNextListener = converterListener;
|
||||
NS_IF_RELEASE(converterListener);
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
|
@ -1525,6 +1525,7 @@ nsChannelListener::OnStartRequest(nsIChannel *aChannel, nsISupports *aContext)
|
||||
rv = StreamConvService->AsyncConvertData(from.GetUnicode(), to.GetUnicode(), mNextListener, aChannel,
|
||||
&converterListener);
|
||||
mNextListener = converterListener;
|
||||
NS_IF_RELEASE(converterListener);
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user