Author: post
Date: 2011-08-31 20:45:53 +0200 (Wed, 31 Aug 2011)
New Revision: 375

Modified:
   RawSpeed/RawImageDataU16.cpp
Log:
If no black areas, remember to free histogram. Thanks to Henrik Andersson for 
report and fix!

Modified: RawSpeed/RawImageDataU16.cpp
===================================================================
--- RawSpeed/RawImageDataU16.cpp        2011-08-31 18:40:50 UTC (rev 374)
+++ RawSpeed/RawImageDataU16.cpp        2011-08-31 18:45:53 UTC (rev 375)
@@ -85,6 +85,7 @@
   if (!totalpixels) {
     for (int i = 0 ; i < 4; i++)
       blackLevelSeparate[i] = blackLevel;
+    free(histogram);
     return;
   }
 


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to