[Rawstudio-commit] rawspeed r195 - RawSpeed

Klaus Post klauspost at gmail.com
Tue Feb 9 20:14:26 CET 2010


Author: post
Date: 2010-02-09 20:14:25 +0100 (Tue, 09 Feb 2010)
New Revision: 195

Modified:
   RawSpeed/FileReader.cpp
Log:
Remember to close file handle.

Modified: RawSpeed/FileReader.cpp
===================================================================
--- RawSpeed/FileReader.cpp	2010-02-06 22:11:57 UTC (rev 194)
+++ RawSpeed/FileReader.cpp	2010-02-09 19:14:25 UTC (rev 195)
@@ -58,6 +58,7 @@
     dest = (char *) fileData->getDataWrt(bytes_read);
     bytes_read += read(fd, dest, st.st_size - bytes_read);
   }
+  close(fd);
 #endif
 
 #else // __unix__




More information about the Rawstudio-commit mailing list