Browse Source

ScreenShotD3D11 delete fix.

rextimmy 9 năm trước cách đây
mục cha
commit
2073a94a7a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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);