wined3d: Fix memory leaks in blitter_destroy callbacks.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6dd1ca28bf
commit
a77d957da8
|
@ -2394,6 +2394,8 @@ static void fbo_blitter_destroy(struct wined3d_blitter *blitter, struct wined3d_
|
||||||
|
|
||||||
if ((next = blitter->next))
|
if ((next = blitter->next))
|
||||||
next->ops->blitter_destroy(next, context);
|
next->ops->blitter_destroy(next, context);
|
||||||
|
|
||||||
|
HeapFree(GetProcessHeap(), 0, blitter);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void fbo_blitter_clear(struct wined3d_blitter *blitter, struct wined3d_device *device,
|
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))
|
if ((next = blitter->next))
|
||||||
next->ops->blitter_destroy(next, context);
|
next->ops->blitter_destroy(next, context);
|
||||||
|
|
||||||
|
HeapFree(GetProcessHeap(), 0, blitter);
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL ffp_blit_supported(const struct wined3d_gl_info *gl_info,
|
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))
|
if ((next = blitter->next))
|
||||||
next->ops->blitter_destroy(next, context);
|
next->ops->blitter_destroy(next, context);
|
||||||
|
|
||||||
|
HeapFree(GetProcessHeap(), 0, blitter);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT surface_cpu_blt_compressed(const BYTE *src_data, BYTE *dst_data,
|
static HRESULT surface_cpu_blt_compressed(const BYTE *src_data, BYTE *dst_data,
|
||||||
|
|
Loading…
Reference in New Issue