OV7670_with_AL422B Color & Size Test Program

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
diasea
Date:
Sun Feb 17 12:42:55 2013 +0000
Parent:
2:2c2fe5bc082c
Child:
4:2c412c97678c
Commit message:
fix

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Feb 16 13:33:32 2013 +0000
+++ b/main.cpp	Sun Feb 17 12:42:55 2013 +0000
@@ -436,6 +436,10 @@
                     }
 #endif
                 }
+
+                for(int i=0; i<2; i++) {
+                    free(bayer_line_data[i]);
+                }
 #ifdef BITMAPFILE
                 fwrite(bmp_line_data, sizeof(unsigned char), real_width, fp);
 #endif
@@ -444,6 +448,7 @@
         camera.ReadStop();
 
 #ifdef BITMAPFILE
+        free(bmp_line_data);
         fclose(fp);
 #endif
 #ifdef HEXFILE