st/xa: Fix a memory leak
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 26 Nov 2018 18:02:08 +0000 (19:02 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 29 Nov 2018 09:42:06 +0000 (10:42 +0100)
Free the context after destruction.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/state_trackers/xa/xa_context.c

index 94f7185272a061ea72793c4d927a8d53f3cabc43..a4630cf09ca2fc9bf735e7de1984d9017904a8a3 100644 (file)
@@ -91,6 +91,7 @@ xa_context_destroy(struct xa_context *r)
     }
 
     r->pipe->destroy(r->pipe);
+    free(r);
 }
 
 XA_EXPORT int