Merge pull request #1571 from rextimmy/ScreenShotD3D11_delete_fix

ScreenShotD3D11 delete fix.
This commit is contained in:
Areloch 2016-04-08 00:42:04 -05:00
commit 21f5273098

View file

@ -52,7 +52,7 @@ GBitmap* ScreenShotD3D11::_captureBackBuffer()
if (FAILED(hr))
{
//cleanup
SAFE_DELETE(pData);
SAFE_DELETE_ARRAY(pData);
SAFE_RELEASE(pNewTexture);
return NULL;
}
@ -88,7 +88,7 @@ GBitmap* ScreenShotD3D11::_captureBackBuffer()
}
//cleanup
SAFE_DELETE(pData);
SAFE_DELETE_ARRAY(pData);
SAFE_RELEASE(pNewTexture);