From be6d3801fc964f98589cf4602cb08262b4c09c44 Mon Sep 17 00:00:00 2001 From: Randell Jesup Date: Mon, 28 Jan 2013 11:29:35 -0500 Subject: [PATCH] Bug 835287: Give up ref to TransportFlow to runnable meant to release it r=ekr --- netwerk/sctp/datachannel/DataChannel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwerk/sctp/datachannel/DataChannel.cpp b/netwerk/sctp/datachannel/DataChannel.cpp index f96fe8b0a9a..949f16fcd51 100644 --- a/netwerk/sctp/datachannel/DataChannel.cpp +++ b/netwerk/sctp/datachannel/DataChannel.cpp @@ -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); } }