Fix for nsbeta2+ bug #37848 r=ssu

This commit is contained in:
dbragg%netscape.com 2000-06-21 13:42:26 +00:00
parent 82d98577c0
commit e0ee7e149e

View File

@ -228,6 +228,10 @@ PRInt32 ReplaceFileNow(nsIFile* replacementFile, nsIFile* doomedFile )
doomedFile->Clone(getter_AddRefs(tmpFile)); // recreate the tmpFile as a doomedFile
tmpFile->MoveTo(parent, leafname);
tmpFile = parent; //MoveTo on Mac doesn't reset the tmpFile object to
tmpFile->Append(leafname); //the new name or location. That's why there's this
//explict assignment and Append call.
if (leafname) nsCRT::free( leafname );
}