Backed out changeset 317c684efd2d (bug 997908) for mochitest-e10s leaks.

This commit is contained in:
Ryan VanderMeulen 2014-09-19 13:43:02 -04:00
parent 9b53fab543
commit d67421653d

View File

@ -1054,12 +1054,6 @@ CycleCollectedJSRuntime::DeferredFinalize(DeferredFinalizeAppendFunction aAppend
void
CycleCollectedJSRuntime::DeferredFinalize(nsISupports* aSupports)
{
// We'll crash here if aSupports is invalid, which is better (more
// informative) than crashing in ReleaseSliceNow(). See bug 997908.
// This patch should be backed out when bug 997908 gets fixed, or if
// it doesn't actually help fix that bug.
NS_IF_ADDREF(aSupports);
NS_IF_RELEASE(aSupports);
mDeferredSupports.AppendElement(aSupports);
}