Reply to 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.

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].
  • Images can be added to this post.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.