Bug 473268 - We should use forget instead of swap in mozStorageService.cpp; r=sdwilsh

This commit is contained in:
Nilay Vaish 2009-02-03 15:42:28 +01:00
parent 1c1304980a
commit 4bf92afb22

View File

@ -302,7 +302,7 @@ mozStorageService::BackupDatabaseFile(nsIFile *aDBFile,
rv = backupDB->Remove(PR_FALSE);
NS_ENSURE_SUCCESS(rv, rv);
backupDB.swap(*backup);
backupDB.forget(backup);
return aDBFile->CopyTo(parentDir, fileName);
}