Commit a77fd778 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

d3drm: Free texture object when releasing mesh builder object.

parent 0023ddf1
...@@ -367,6 +367,8 @@ static ULONG WINAPI IDirect3DRMMeshBuilder2Impl_Release(IDirect3DRMMeshBuilder2* ...@@ -367,6 +367,8 @@ static ULONG WINAPI IDirect3DRMMeshBuilder2Impl_Release(IDirect3DRMMeshBuilder2*
{ {
if (This->material) if (This->material)
IDirect3DRMMaterial2_Release(This->material); IDirect3DRMMaterial2_Release(This->material);
if (This->texture)
IDirect3DRMTexture3_Release(This->texture);
HeapFree(GetProcessHeap(), 0, This->name); HeapFree(GetProcessHeap(), 0, This->name);
HeapFree(GetProcessHeap(), 0, This->pVertices); HeapFree(GetProcessHeap(), 0, This->pVertices);
HeapFree(GetProcessHeap(), 0, This->pNormals); HeapFree(GetProcessHeap(), 0, This->pNormals);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment