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

DeviceImage cleans up better now

parent 7d3c28c5
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,10 @@ public:
catch (std::runtime_error e)
{
for (int j=0; j<i; ++j)
{
delete deviceImages[j];
deviceImages[j] = NULL;
}
throw std::runtime_error(e.what());
}
......@@ -31,7 +34,11 @@ public:
~CudaDeviceImages()
{
for (int i=0; i<numBuffers; ++i)
delete deviceImages[i];
{
CudaImageContainerClean<PixelType>* temp = deviceImages[i];
delete temp;
deviceImages[i] = NULL;
}
}
CudaImageContainer<PixelType>* getCurBuffer()
......
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