DestroyMagickWand

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
*void

DestroyMagickWand

Post by *void »

DestroyMagicWand is prototyped to return a MagickWand. This seemed pretty circular to me until I realized it actually returns the value 0. But this still left the question, why not prototype it as a void? Does this have some rationale?

(Same with other Destroy functions)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

In security programming you are encouraged to reset any variable when you are finished using it. Its a convenience then to use
  • wand = DestroyWand(wand);
Post Reply