Skip to content
Snippets Groups Projects
Commit b45c43f9 authored by Eric Wait's avatar Eric Wait
Browse files

Fixed Another Memory Leak

parent e37615e8
No related branches found
No related tags found
No related merge requests found
......@@ -39,13 +39,13 @@ void ImageContainer::copy(const ImageContainer& im)
void ImageContainer::clear()
{
defaults();
if (image)
if (image!=NULL)
{
delete[] image;
image = NULL;
}
defaults();
}
HostPixelType ImageContainer::getPixelValue(size_t x, size_t y, size_t z) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment