MagickWand, using rose: format
Posted: 2007-09-30T11:33:16-07:00
Consider this code:
If i replace rose: with for example netscape: It does not crash during MagickRelinquishMemory. Am I doing something wrong here or is this a bug?
Code: Select all
#include <stdio.h>
#include <wand/magick-wand.h>
int main()
{
MagickWand *magick_wand;
unsigned char *image;
magick_wand = NewMagickWand();
size_t length;
MagickReadImage( magick_wand, "rose:" );
MagickSetSize( magick_wand, 200, 200 );
image = MagickGetImageBlob( magick_wand, &length );
image = (unsigned char *)MagickRelinquishMemory( image );
return 0;
}