Bug 1153267 - part 1 - use smart-pointer .forget() instead of NS_ADDREF+assign; r=ehsan

This commit is contained in:
Nathan Froyd
2015-03-31 10:03:49 -04:00
parent 895d96ba54
commit 023e3d5c3f
47 changed files with 109 additions and 122 deletions

View File

@@ -1743,8 +1743,7 @@ HTMLFormElement::GetActionURL(nsIURI** aActionURL,
//
// Assign to the output
//
*aActionURL = actionURL;
NS_ADDREF(*aActionURL);
actionURL.forget(aActionURL);
return rv;
}