widgets/magick: update memory handling