cfileio: fix leaks by not closing files in the destructor
authorMatthew Waters <matthew@centricular.com>
Mon, 17 Oct 2016 13:28:14 +0000 (00:28 +1100)
committerMatthew Waters <matthew@centricular.com>
Mon, 17 Oct 2016 13:35:56 +0000 (00:35 +1100)
commitcbcaa107ebb72ce573a0f55c79b3a79bda72ce15
tree326ee2be9d3ee7577676632bf3ee485772def2af
parent09ad67f46998ad98db8920537d55a2a065edd748
cfileio: fix leaks by not closing files in the destructor

Numerous importers rely on the default C++ IOSystem implementation
having the destructor close the file for them.  The C IOSystem wrapper
wasn't and instead assumed that the Close() method was going to be
called.

This brings the C IOSystem wrapper in line with the default C++ IOSystem
by having the destructor close the file.
code/CInterfaceIOWrapper.cpp [new file with mode: 0644]
code/CInterfaceIOWrapper.h
code/CMakeLists.txt