]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 27 Oct 2014 00:30:57 +0000 (00:30 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 27 Oct 2014 00:30:57 +0000 (00:30 +0000)
MagickCore/vision.c

index 81cfd2c3865f65deb6989af9dc8efd84d1745b13..e0fbac5357973b6a41ecbbcbac2cac2779e84246 100644 (file)
@@ -331,6 +331,7 @@ static MagickBooleanType MergeConnectedComponents(Image *image,
       p+=GetPixelChannels(image);
     }
   }
+  image_view=DestroyCacheView(image_view);
   for (i=0; i < (ssize_t) number_objects; i++)
   {
     object[i].bounding_box.width-=(object[i].bounding_box.x-1);
@@ -339,6 +340,7 @@ static MagickBooleanType MergeConnectedComponents(Image *image,
   /*
     Merge objects below area threshold.
   */
+  image_view=AcquireAuthenticCacheView(image,exception);
   for (i=0; i < (ssize_t) number_objects; i++)
   {
   }