Permalink
Browse files

bugfix: free meemory when conversion is done

  • Loading branch information...
haesleinhuepf committed Dec 6, 2018
1 parent b66d15d commit ad1408dcbb7a3ace2585ca8b4f288f93a1f7ec91
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/java/net/haesleinhuepf/imagej/utilities/ImageTypeConverter.java
@@ -296,6 +296,7 @@ public int numDimensions() {
System.out.println("Copy to buffer took " + (System.currentTimeMillis() - time) + " msec");
copyClBufferToImg(buffer, img, lBytesPerPixel, lNumberOfPixels);
buffer.close();
return img;
}
@@ -408,6 +409,7 @@ else if (lInputType == NativeTypeEnum.Float)
"Cannot convert object of type " + lInputType.getClass()
.getCanonicalName());
}
contOut.free();
System.out.println("Copy to cursor took " + (System.currentTimeMillis() - time) + " msec");

0 comments on commit ad1408d

Please sign in to comment.