Fixed some of the memoryleak caused by changes made for newer version of image magick library. tracker item 1656
Fixed some of the memoryleak caused by changes made for newer version of image magick library. tracker item 1656

cmiss/cmgui,cmiss/cmgui