mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
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:
parent
b4e8ea7017
commit
cce2a17b1d
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user