Bug 938693 - Check the return value of PR_Close() in ~FileBlockCache() and issue a message if it fails. r=cpearce

This commit is contained in:
ISHIKAWA, Chiaki 2013-11-15 21:46:40 -05:00
parent b4e8ea7017
commit cce2a17b1d

View File

@ -48,7 +48,11 @@ FileBlockCache::~FileBlockCache()
// block while taking mFileMonitor.
MonitorAutoLock mon(mFileMonitor);
if (mFD) {
PR_Close(mFD);
PRStatus prrc;
prrc = PR_Close(mFD);
if (prrc != PR_SUCCESS) {
NS_WARNING("PR_Close() failed.");
}
mFD = nullptr;
}
}