diff --git a/src/modules/image/Image.cpp b/src/modules/image/Image.cpp index 212aba2c8..d50db0d50 100644 --- a/src/modules/image/Image.cpp +++ b/src/modules/image/Image.cpp @@ -125,12 +125,12 @@ std::vector> Image::newVolumeLayers(ImageData *src) if (totalW % totalH == 0) { for (int i = 0; i < totalW / totalH; i++) - layers.emplace_back(newPastedImageData(src, i * totalH, 0, totalH, totalH)); + layers.emplace_back(newPastedImageData(src, i * totalH, 0, totalH, totalH), Acquire::NORETAIN); } else if (totalH % totalW == 0) { for (int i = 0; i < totalH / totalW; i++) - layers.emplace_back(newPastedImageData(src, 0, i * totalW, totalW, totalW)); + layers.emplace_back(newPastedImageData(src, 0, i * totalW, totalW, totalW), Acquire::NORETAIN); } else throw love::Exception("Cannot extract volume layers from source ImageData.");