wined3d: Free the "texture_type" array in wined3d_context_cleanup().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2019-05-03 15:26:00 +04:30 committed by Alexandre Julliard
parent 08b8801c3c
commit 166e75e808
1 changed files with 2 additions and 1 deletions

View File

@ -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())