ソースを参照

ScreenShotD3D11 delete fix.

rextimmy 9 年 前
コミット
2073a94a7a
1 ファイル変更2 行追加2 行削除
  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);