This commit is contained in:
dbragg%netscape.com 2000-06-21 13:42:26 +00:00
Родитель 82d98577c0
Коммит e0ee7e149e
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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 );
}