Re: Call to DestroyBlob() throws error

Anthony Thyssen <[email protected]> Thu, 1 Jul 2010 13:16:00 +1000
Newsgroups gmane.comp.video.image-magick.devel
Message-ID <20100701131600.45ee4242@wraith>
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/