Permalink
Browse files

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

  • Loading branch information...
1 parent ac81226 commit fc9c91947af726dbc115f65e5bfa58578ed6d013 @Ms2ger Ms2ger committed Feb 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit fc9c919

Please sign in to comment.