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

Alexandre Julliard julliard at winehq.org
Fri May 3 15:46:17 CDT 2019


Module: wine
Branch: master
Commit: 166e75e8080bc1705627add506eef6928ebb4325
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=166e75e8080bc1705627add506eef6928ebb4325

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri May  3 15:44:00 2019 +0430

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

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 3f9605c..148d69f 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())




More information about the wine-cvs mailing list