Hello,

 

I guess my memory leaking problem came from a wrong memory allocation for
MagickGetImagePixels.

Could anybody to suggest what I am doing wrong when allocating memory?

 

I have :

 

DWORD * pixelsMain = (DWORD*) realloc(pixelsMain, (columnsM+2) * (rowsM+2) *
16 + 16);

PixelPacket* pixels = (PixelPacket*)((DWORD)pixelsMain & ~15);

MagickGetImagePixels(mwand,0,0,columnsM, rowsM,"RGBO",ShortPixel, pixels);

 

Free(pixelsMain);

 

Best Regards,

 

Eugene Feiguelman

Mailing Innovations

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to