[3/4] wined3d: Fix memory leaks in blitter_destroy callbacks.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[3/4] wined3d: Fix memory leaks in blitter_destroy callbacks.

Sebastian Lackner
Signed-off-by: Sebastian Lackner <[hidden email]>
---
 dlls/wined3d/surface.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index abdeb9cac0..af8b5b4cb3 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2394,6 +2394,8 @@ static void fbo_blitter_destroy(struct wined3d_blitter *blitter, struct wined3d_
 
     if ((next = blitter->next))
         next->ops->blitter_destroy(next, context);
+
+    HeapFree(GetProcessHeap(), 0, blitter);
 }
 
 static void fbo_blitter_clear(struct wined3d_blitter *blitter, struct wined3d_device *device,
@@ -2476,6 +2478,8 @@ static void ffp_blitter_destroy(struct wined3d_blitter *blitter, struct wined3d_
 
     if ((next = blitter->next))
         next->ops->blitter_destroy(next, context);
+
+    HeapFree(GetProcessHeap(), 0, blitter);
 }
 
 static BOOL ffp_blit_supported(const struct wined3d_gl_info *gl_info,
@@ -2766,6 +2770,8 @@ static void cpu_blitter_destroy(struct wined3d_blitter *blitter, struct wined3d_
 
     if ((next = blitter->next))
         next->ops->blitter_destroy(next, context);
+
+    HeapFree(GetProcessHeap(), 0, blitter);
 }
 
 static HRESULT surface_cpu_blt_compressed(const BYTE *src_data, BYTE *dst_data,
--
2.13.1


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [3/4] wined3d: Fix memory leaks in blitter_destroy callbacks.

Henri Verbeet-2
Signed-off-by: Henri Verbeet <[hidden email]>


Loading...