Page 1 of 1

DestroyMagickWand

Posted: 2006-12-25T17:59:54-07:00
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)

Posted: 2006-12-25T19:06:01-07:00
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);