Re: d3dx9_36/tests [patch 2/2, try 3]: Add tests for D3DXCreatePolygon

2011-11-09 Thread Rico Schüller
Am 09.11.2011 14:42, schrieb Matteo Bruni: 2011/11/9 David Adam: Better, but there are still issues: +if( polygon ) polygon->lpVtbl->Release(polygon); +if( ppBuffer ) ID3DXBuffer_Release(ppBuffer); You aren't setting those pointers to NULL (and your test shows that D3DXCreatePolygon doe

Re: d3dx9_36/tests [patch 2/2, try 3]: Add tests for D3DXCreatePolygon

2011-11-09 Thread Matteo Bruni
2011/11/9 David Adam : > Better, but there are still issues: +if( polygon ) polygon->lpVtbl->Release(polygon); +if( ppBuffer ) ID3DXBuffer_Release(ppBuffer); You aren't setting those pointers to NULL (and your test shows that D3DXCreatePolygon doesn't touch them when the call fails), so