[Release v2.2.0]buaazp: Fixed memory leak in imagemagick.