Add new comment

Crash when freeing a libraw_processd_image_i

I am using libraw in a project (Windows, Visual Studio). My program crashes, when I free the memory allocated by dcraw_make_mem_image:

libraw_processed_image_t *image = rawProcessor.dcraw_make_mem_image(&error);
free(image);

This does not occur, when I make the free-function defined in the libraw class public and use it to free the memory. What is the cause and solution to this problem?

Thank you in advance.

Forums: