diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c index 4d7c76e8a76..9288b949d81 100644 --- a/dlls/wined3d/cs.c +++ b/dlls/wined3d/cs.c @@ -939,5 +939,6 @@ void wined3d_cs_destroy(struct wined3d_cs *cs) { state_cleanup(&cs->state); HeapFree(GetProcessHeap(), 0, cs->fb.render_targets); + HeapFree(GetProcessHeap(), 0, cs->data); HeapFree(GetProcessHeap(), 0, cs); }