Sadaei Osakabe
/
OV7670_with_AL422B_Color_Size_test
OV7670_with_AL422B Color & Size Test Program
Diff: main.cpp
- Revision:
- 3:e23726af9d38
- Parent:
- 2:2c2fe5bc082c
- Child:
- 4:2c412c97678c
diff -r 2c2fe5bc082c -r e23726af9d38 main.cpp --- 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