Loading...

magick-developers@imagemagick.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [magick-developers] Call to DestroyBlob() throws error Anthony Thyssen Wed Jun 30 21:00:23 2010

On Wed, 30 Jun 2010 17:54:00 -0700
[EMAIL PROTECTED] wrote:
| > I am trying to delete the Blobs
| 
| Certainly going out of scope will delete a blob or try this code:
| 
|     Magick::Image im;
|     Magick::Blob *blob = new Magick::Blob ;
| 
|     im.read("logo:");
|     im.magick("RGBA");
|     im.write(blob);
|     delete blob;

So the Magick API automatically deletes blobs when the final reference
is removed.

Okay.  Though you may need to test this.



  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 --------------------------------------------------------------------------
                 Spell chequers dew knot work write.
 --------------------------------------------------------------------------
   Anthony's Castle     http://www.cit.griffith.edu.au/~anthony/
_______________________________________________
Magick-developers mailing list
[EMAIL PROTECTED]
http://studio.imagemagick.org/mailman/listinfo/magick-developers