Mercurial > mm7
diff Render.cpp @ 2418:86357e382e33
leaks
author | zipi |
---|---|
date | Tue, 22 Jul 2014 16:36:18 +0100 |
parents | 15440e9ae7b6 |
children | df09713d6531 |
line wrap: on
line diff
--- a/Render.cpp Tue Jul 22 17:43:28 2014 +0600 +++ b/Render.cpp Tue Jul 22 16:36:18 2014 +0100 @@ -802,7 +802,8 @@ { delete [] v20.pDriverName; delete [] v20.pDeviceDesc; - free(v20.pDDraw4DevDesc); + //free(v20.pDDraw4DevDesc); + delete [] v20.pDDraw4DevDesc; delete v20.pGUID; v6 = (IUnknown *)pDirectDraw4; } @@ -813,7 +814,8 @@ pDirect3D3->EnumDevices((LPD3DENUMDEVICESCALLBACK)D3DDeviceEnumerator, &aux); delete [] v20.pDriverName; delete [] v20.pDeviceDesc; - free(v20.pDDraw4DevDesc); + //free(v20.pDDraw4DevDesc); + delete [] v20.pDDraw4DevDesc; delete v20.pGUID; pDirectDraw4->Release(); v6 = (IUnknown *)pDirect3D3; @@ -6393,7 +6395,9 @@ } delete [] sprite_texture->pPixels; delete sprite_texture; - return true; + delete [] sprite_texture->pPixels; + delete sprite_texture; + return true; } return false; }