Skip to content

Commit

Permalink
Bug 1096078 - Restore use of Destroy() for DOMMediaStream. r=jesup
Browse files Browse the repository at this point in the history
  • Loading branch information
aosmond committed Nov 13, 2014
1 parent b21b6a2 commit f1b2045
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dom/media/DOMMediaStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ NS_IMPL_CYCLE_COLLECTION_CLASS(DOMMediaStream)

NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(DOMMediaStream,
DOMEventTargetHelper)
if (tmp->mListener) {
// Make sure |mListener| cannot call back after |mTracks| is collected
tmp->mListener->Forget();
}
tmp->Destroy();
NS_IMPL_CYCLE_COLLECTION_UNLINK(mWindow)
NS_IMPL_CYCLE_COLLECTION_UNLINK(mTracks)
NS_IMPL_CYCLE_COLLECTION_UNLINK(mConsumersToKeepAlive)
Expand Down

0 comments on commit f1b2045

Please sign in to comment.