Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug 839447 - Part 4: Fix a potential null dereference; r=I'm an idiot

  • Loading branch information...
commit fc9c91947af726dbc115f65e5bfa58578ed6d013 1 parent ac81226
@Ms2ger Ms2ger authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  content/html/content/src/HTMLOptionElement.cpp
View
2  content/html/content/src/HTMLOptionElement.cpp
@@ -100,7 +100,7 @@ NS_IMPL_ELEMENT_CLONE(HTMLOptionElement)
NS_IMETHODIMP
HTMLOptionElement::GetForm(nsIDOMHTMLFormElement** aForm)
{
- NS_ADDREF(*aForm = GetForm());
+ NS_IF_ADDREF(*aForm = GetForm());
return NS_OK;
}
Please sign in to comment.
Something went wrong with that request. Please try again.