diff --git a/layout/svg/base/src/nsSVGOuterSVGFrame.cpp b/layout/svg/base/src/nsSVGOuterSVGFrame.cpp index ba363dd65ddf..9938c2352ecb 100644 --- a/layout/svg/base/src/nsSVGOuterSVGFrame.cpp +++ b/layout/svg/base/src/nsSVGOuterSVGFrame.cpp @@ -1048,8 +1048,8 @@ void nsSVGOuterSVGFrame::InitiateReflow() mNeedsReflow = PR_FALSE; // Generate a reflow command to reflow ourselves - nsCOMPtr reflowCmd; - NS_NewHTMLReflowCommand(getter_AddRefs(reflowCmd), this, eReflowType_ReflowDirty); + nsHTMLReflowCommand *reflowCmd; + NS_NewHTMLReflowCommand(&reflowCmd, this, eReflowType_ReflowDirty); if (!reflowCmd) { NS_ERROR("error creating reflow command object"); return;