Commit 771a1972 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

Fixed memory leak in IvusBatchReader processor.

parent 52503fb5
......@@ -103,8 +103,6 @@ namespace campvis {
}
// get data from image and transform to single intensity image:
ILubyte *data = ilGetData();
ilCopyPixels(0, 0, 0, imageSize.x, imageSize.y, 1, IL_LUMINANCE, IL_UNSIGNED_BYTE, buffer + (sizeof(uint8_t) * i * imageSize.x * imageSize.y));
ILint err = ilGetError();
if (err != IL_NO_ERROR) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment