diff --git a/mozilla/extensions/layout-debug/src/nsLayoutDebuggingTools.cpp b/mozilla/extensions/layout-debug/src/nsLayoutDebuggingTools.cpp index 734a191b57b..18d9153f38a 100644 --- a/mozilla/extensions/layout-debug/src/nsLayoutDebuggingTools.cpp +++ b/mozilla/extensions/layout-debug/src/nsLayoutDebuggingTools.cpp @@ -401,8 +401,7 @@ DumpContentRecur(nsIDocShell* aDocShell, FILE* out) fprintf(out, "docshell=%p \n", NS_STATIC_CAST(void*, aDocShell)); nsCOMPtr doc(document(aDocShell)); if (doc) { - nsCOMPtr root; - doc->GetRootContent(getter_AddRefs(root)); + nsIContent *root = doc->GetRootContent(); if (root) { root->List(out); }