comparison Render.cpp @ 2418:86357e382e33

leaks
author zipi
date Tue, 22 Jul 2014 16:36:18 +0100
parents 15440e9ae7b6
children df09713d6531
comparison
equal deleted inserted replaced
2417:15440e9ae7b6 2418:86357e382e33
800 || !v19 800 || !v19
801 || FAILED(pDirectDraw4->QueryInterface(IID_IDirect3D3, (LPVOID *)&pDirect3D3))) 801 || FAILED(pDirectDraw4->QueryInterface(IID_IDirect3D3, (LPVOID *)&pDirect3D3)))
802 { 802 {
803 delete [] v20.pDriverName; 803 delete [] v20.pDriverName;
804 delete [] v20.pDeviceDesc; 804 delete [] v20.pDeviceDesc;
805 free(v20.pDDraw4DevDesc); 805 //free(v20.pDDraw4DevDesc);
806 delete [] v20.pDDraw4DevDesc;
806 delete v20.pGUID; 807 delete v20.pGUID;
807 v6 = (IUnknown *)pDirectDraw4; 808 v6 = (IUnknown *)pDirectDraw4;
808 } 809 }
809 else 810 else
810 { 811 {
811 aux.pInfo = pOut; 812 aux.pInfo = pOut;
812 aux.ptr_4 = &v20; 813 aux.ptr_4 = &v20;
813 pDirect3D3->EnumDevices((LPD3DENUMDEVICESCALLBACK)D3DDeviceEnumerator, &aux); 814 pDirect3D3->EnumDevices((LPD3DENUMDEVICESCALLBACK)D3DDeviceEnumerator, &aux);
814 delete [] v20.pDriverName; 815 delete [] v20.pDriverName;
815 delete [] v20.pDeviceDesc; 816 delete [] v20.pDeviceDesc;
816 free(v20.pDDraw4DevDesc); 817 //free(v20.pDDraw4DevDesc);
818 delete [] v20.pDDraw4DevDesc;
817 delete v20.pGUID; 819 delete v20.pGUID;
818 pDirectDraw4->Release(); 820 pDirectDraw4->Release();
819 v6 = (IUnknown *)pDirect3D3; 821 v6 = (IUnknown *)pDirect3D3;
820 pDirectDraw4 = 0; 822 pDirectDraw4 = 0;
821 } 823 }
6391 } 6393 }
6392 ErrD3D(pSprite->pTextureSurface->Unlock(0)); 6394 ErrD3D(pSprite->pTextureSurface->Unlock(0));
6393 } 6395 }
6394 delete [] sprite_texture->pPixels; 6396 delete [] sprite_texture->pPixels;
6395 delete sprite_texture; 6397 delete sprite_texture;
6396 return true; 6398 delete [] sprite_texture->pPixels;
6399 delete sprite_texture;
6400 return true;
6397 } 6401 }
6398 return false; 6402 return false;
6399 } 6403 }
6400 6404
6401 //----- (004A51CB) -------------------------------------------------------- 6405 //----- (004A51CB) --------------------------------------------------------