Bug 835287: Give up ref to TransportFlow to runnable meant to release it r=ekr

This commit is contained in:
Randell Jesup 2013-01-28 11:29:35 -05:00
parent dc5200d225
commit be6d3801fc

View File

@ -164,7 +164,7 @@ DataChannelConnection::~DataChannelConnection()
// TransportFlows must be released from the STS thread
if (mTransportFlow && !IsSTSThread()) {
MOZ_ASSERT(mSTS);
RUN_ON_THREAD(mSTS, WrapRunnableNM(ReleaseTransportFlow, mTransportFlow),
RUN_ON_THREAD(mSTS, WrapRunnableNM(ReleaseTransportFlow, mTransportFlow.forget()),
NS_DISPATCH_NORMAL);
}
}