[PATCH 3/6] wined3d: Free the "texture_type" array in wined3d_context_cleanup().
Henri Verbeet
hverbeet at codeweavers.com
Fri May 3 05:56:00 CDT 2019
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
dlls/wined3d/context.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 3f9605c2566..148d69f5cf1 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -1478,6 +1478,8 @@ static void wined3d_context_cleanup(struct wined3d_context *context)
DWORD err = GetLastError();
ERR("wglDeleteContext(%p) failed, last error %#x.\n", context->glCtx, err);
}
+
+ heap_free(context->texture_type);
}
DWORD context_get_tls_idx(void)
@@ -2321,7 +2323,6 @@ void wined3d_context_destroy(struct wined3d_context *context)
device->shader_backend->shader_free_context_data(context);
device->adapter->fragment_pipe->free_context_data(context);
- heap_free(context->texture_type);
device_context_remove(device, context);
if (context->current && context->tid != GetCurrentThreadId())
--
2.11.0
More information about the wine-devel
mailing list