Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley

This commit is contained in:
Aidin Gharibnavaz
2016-02-10 08:23:00 +01:00
parent 4366c707dc
commit bb0750ec60
53 changed files with 152 additions and 451 deletions

View File

@@ -610,8 +610,7 @@ nsHTTPListener::~nsHTTPListener()
}
if (mLoader) {
nsCOMPtr<nsIThread> mainThread(do_GetMainThread());
NS_ProxyRelease(mainThread, mLoader);
NS_ReleaseOnMainThread(mLoader.forget());
}
}