/[svn]/libgig/trunk/src/RIFF.cpp
ViewVC logotype

Diff of /libgig/trunk/src/RIFF.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3918 by schoenebeck, Mon Jun 7 19:42:17 2021 UTC revision 3919 by schoenebeck, Sat Jun 12 13:51:10 2021 UTC
# Line 2382  namespace RIFF { Line 2382  namespace RIFF {
2382      }      }
2383    
2384      void File::Cleanup() {      void File::Cleanup() {
2385          const Handle hRead = FileHandle();          if (IsIOPerThread()) {
2386          if (_isValidHandle(hRead)) _close(hRead);              for (auto it = io.byThread.begin(); it != io.byThread.end(); ++it) {
2387                    _close(it->second.hRead);
2388                }
2389            } else {
2390                _close(io.hRead);
2391            }
2392          DeleteChunkList();          DeleteChunkList();
2393          pFile = NULL;          pFile = NULL;
2394      }      }

Legend:
Removed from v.3918  
changed lines
  Added in v.3919

  ViewVC Help
Powered by ViewVC