Explorar o código

ScreenShotD3D11 delete fix.

rextimmy %!s(int64=9) %!d(string=hai) anos
pai
achega
2073a94a7a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Engine/source/gfx/D3D11/screenshotD3D11.cpp

+ 2 - 2
Engine/source/gfx/D3D11/screenshotD3D11.cpp

@@ -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);