release memory in resized and loaded

This commit is contained in:
Matt McWilliams 2024-10-22 16:59:12 -04:00
parent b17840c8de
commit c646be9534
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ Mat Image::loadImage (string& image_path, uint64_t& x, uint64_t& y, uint64_t& w,
#else #else
cvtColor(image, image, CV_BGR2RGB); cvtColor(image, image, CV_BGR2RGB);
#endif #endif
loaded.release();
resized.release();
} }
return image; return image;
} }