diff --git a/editor/base/nsEditor.cpp b/editor/base/nsEditor.cpp index b504e46a6e5..766e12c4811 100644 --- a/editor/base/nsEditor.cpp +++ b/editor/base/nsEditor.cpp @@ -1091,7 +1091,7 @@ nsEditor::InsertFormattingForNode(nsIDOMNode* aNode) char* nodename = namestr.ToNewCString(); printf("Inserting formatting for node <%s> at offset %d\n", nodename, offset); - nsCRT::free(nodename); + Recycle(nodename); #endif /* DEBUG_akkana */ // @@ -1650,7 +1650,6 @@ NS_IMETHODIMP nsEditor::InsertTextImpl(const nsString& aStringToInsert) if ((NS_SUCCEEDED(result)) && selection) { nsCOMPtr selectedNode; - PRInt32 offset; result = selection->GetAnchorNode(getter_AddRefs(selectedNode)); if (NS_SUCCEEDED(result) && NS_SUCCEEDED(selection->GetAnchorOffset(&offset)) && selectedNode) { diff --git a/editor/libeditor/base/nsEditor.cpp b/editor/libeditor/base/nsEditor.cpp index b504e46a6e5..766e12c4811 100644 --- a/editor/libeditor/base/nsEditor.cpp +++ b/editor/libeditor/base/nsEditor.cpp @@ -1091,7 +1091,7 @@ nsEditor::InsertFormattingForNode(nsIDOMNode* aNode) char* nodename = namestr.ToNewCString(); printf("Inserting formatting for node <%s> at offset %d\n", nodename, offset); - nsCRT::free(nodename); + Recycle(nodename); #endif /* DEBUG_akkana */ // @@ -1650,7 +1650,6 @@ NS_IMETHODIMP nsEditor::InsertTextImpl(const nsString& aStringToInsert) if ((NS_SUCCEEDED(result)) && selection) { nsCOMPtr selectedNode; - PRInt32 offset; result = selection->GetAnchorNode(getter_AddRefs(selectedNode)); if (NS_SUCCEEDED(result) && NS_SUCCEEDED(selection->GetAnchorOffset(&offset)) && selectedNode) {