diff --git a/layout/generic/nsSelection.cpp b/layout/generic/nsSelection.cpp index 230afc766f21..f7f19d5046d6 100644 --- a/layout/generic/nsSelection.cpp +++ b/layout/generic/nsSelection.cpp @@ -5104,8 +5104,7 @@ Selection::Extend(nsINode& aParentNode, uint32_t aOffset, ErrorResult& aRv) #endif SetDirection(dir); #ifdef DEBUG_SELECTION - nsCOMPtrcontent; - content = do_QueryInterface(aParentNode); + nsCOMPtr content = do_QueryInterface(&aParentNode); printf ("Sel. Extend to %p %s %d\n", content.get(), nsAtomCString(content->Tag()).get(), aOffset);