diff --git a/mozilla/editor/base/EditTable.cpp b/mozilla/editor/base/EditTable.cpp index b9498bc8eef..af9dc6c4337 100644 --- a/mozilla/editor/base/EditTable.cpp +++ b/mozilla/editor/base/EditTable.cpp @@ -100,7 +100,9 @@ PRBool nsHTMLEditor::IsOnlyRowInTable(nsCOMPtr &aRow, nsCOMPtr resultNode; // Scan through all nodes starting at the row we are interested in - nsresult res = GetNextNode(aTable, PR_TRUE, getter_AddRefs(resultNode)); + + nsCOMPtr tmpTable = aTable; + nsresult res = GetNextNode(tmpTable, PR_TRUE, getter_AddRefs(resultNode)); if (NS_SUCCEEDED(res)) { //Test if it's a row and parent is same as table we are in