We tried this code:

  #include <stdio.h>
  #include <wand/magick-wand.h>
  
  main()
  {
    MagickWandGenesis();
    {
      MagickWand *wand = NewMagickWand();
      DestroyMagickWand(wand);
    }
    MagickWandTerminus();
  }

and valgrind reported no leaks:

  valgrind --tool=memcheck --num-callers=8 --leak-check=yes 
--show-reachable=yes wand
  ==9214== Memcheck, a memory error detector.
  ==9214== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
  ==9214== Using LibVEX rev 1575, a library for dynamic binary translation.
  ==9214== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
  ==9214== Using valgrind-3.1.1, a dynamic binary instrumentation framework.
  ==9214== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
  ==9214== For more details, rerun with: -v
  ==9214==
  ==9214== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 34 from 1)
  ==9214== malloc/free: in use at exit: 0 bytes in 0 blocks.
  ==9214== malloc/free: 82 allocs, 82 frees, 24,984 bytes allocated.
  ==9214== For counts of detected errors, rerun with: -v
  ==9214== All heap blocks were freed -- no leaks are possible.
  
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to