Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
This commit is contained in:
@@ -610,8 +610,7 @@ nsHTTPListener::~nsHTTPListener()
|
||||
}
|
||||
|
||||
if (mLoader) {
|
||||
nsCOMPtr<nsIThread> mainThread(do_GetMainThread());
|
||||
NS_ProxyRelease(mainThread, mLoader);
|
||||
NS_ReleaseOnMainThread(mLoader.forget());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user