From a77fd778c2f3ead593f6a9d692a8032e0cb17699 Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Fri, 8 Jun 2012 15:38:43 +0200 Subject: [PATCH] d3drm: Free texture object when releasing mesh builder object. --- dlls/d3drm/meshbuilder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/d3drm/meshbuilder.c b/dlls/d3drm/meshbuilder.c index 56f53fd2b60..043f395f366 100644 --- a/dlls/d3drm/meshbuilder.c +++ b/dlls/d3drm/meshbuilder.c @@ -367,6 +367,8 @@ static ULONG WINAPI IDirect3DRMMeshBuilder2Impl_Release(IDirect3DRMMeshBuilder2* { if (This->material) IDirect3DRMMaterial2_Release(This->material); + if (This->texture) + IDirect3DRMTexture3_Release(This->texture); HeapFree(GetProcessHeap(), 0, This->name); HeapFree(GetProcessHeap(), 0, This->pVertices); HeapFree(GetProcessHeap(), 0, This->pNormals);