summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorThomas Hellstrom <[email protected]>2018-11-26 19:02:08 +0100
committerThomas Hellstrom <[email protected]>2018-11-29 10:42:06 +0100
commit7fce3ca3759e2e156e2e3bf1bcc4ee378dc7fa2d (patch)
tree624cc6f8464834bbdeaa0a24e77f8a5421aab558 /src/gallium/state_trackers
parentcc7deb749c17fa50b9fbca118a37457ff31af7d8 (diff)
st/xa: Fix a memory leak
Free the context after destruction. Cc: [email protected] Signed-off-by: Thomas Hellstrom <[email protected]> Reviewed-by: Sinclair Yeh <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/xa/xa_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xa/xa_context.c b/src/gallium/state_trackers/xa/xa_context.c
index 94f7185272a..a4630cf09ca 100644
--- a/src/gallium/state_trackers/xa/xa_context.c
+++ b/src/gallium/state_trackers/xa/xa_context.c
@@ -91,6 +91,7 @@ xa_context_destroy(struct xa_context *r)
}
r->pipe->destroy(r->pipe);
+ free(r);
}
XA_EXPORT int