Christian Costa : d3drm: Free visual and light resources when releasing frame.
Alexandre Julliard
julliard at winehq.org
Wed May 16 14:22:42 CDT 2012
Module: wine
Branch: master
Commit: 20bf183726ae09160f22952a61acb37d4b056f9e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=20bf183726ae09160f22952a61acb37d4b056f9e
Author: Christian Costa <titan.costa at gmail.com>
Date: Tue May 15 08:08:56 2012 +0200
d3drm: Free visual and light resources when releasing frame.
---
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-cvs
mailing list