mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 20:18:28 +00:00
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:
parent
08b8801c3c
commit
166e75e808
1 changed files with 2 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue