[PATCH 5/5] d3drm: Free visual and light resources when releasing frame.

Christian Costa titan.costa at gmail.com
Tue May 15 01:08:56 CDT 2012


---
 dlls/d3drm/frame.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/d3drm/frame.c b/dlls/d3drm/frame.c
index d02cba8..fc15339 100644
--- a/dlls/d3drm/frame.c
+++ b/dlls/d3drm/frame.c
@@ -140,6 +140,12 @@ static ULONG WINAPI IDirect3DRMFrame2Impl_Release(IDirect3DRMFrame2* iface)
         for (i = 0; i < This->nb_children; i++)
             IDirect3DRMFrame3_Release(This->children[i]);
         HeapFree(GetProcessHeap(), 0, This->children);
+        for (i = 0; i < This->nb_visuals; i++)
+            IDirect3DRMVisual_Release(This->visuals[i]);
+        HeapFree(GetProcessHeap(), 0, This->visuals);
+        for (i = 0; i < This->nb_lights; i++)
+            IDirect3DRMLight_Release(This->lights[i]);
+        HeapFree(GetProcessHeap(), 0, This->lights);
         HeapFree(GetProcessHeap(), 0, This);
     }
 




More information about the wine-patches mailing list