Add new comment

Case B: initialize the image

Case B: initialize the image variable:

libraw_processed_image_t* image = NULL;
LibRaw::dcraw_clear_mem(image);

Without initialization, you pass random garbage to dcraw_clear_mem()

-- Alex Tutubalin @LibRaw LLC