summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/freedreno/a2xx/fd2_context.c1
-rw-r--r--src/gallium/drivers/freedreno/a3xx/fd3_context.c2
-rw-r--r--src/gallium/drivers/freedreno/a4xx/fd4_context.c2
-rw-r--r--src/gallium/drivers/freedreno/a5xx/fd5_context.c2
-rw-r--r--src/gallium/drivers/freedreno/freedreno_context.c2
5 files changed, 7 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/a2xx/fd2_context.c b/src/gallium/drivers/freedreno/a2xx/fd2_context.c
index 4f6e432c965..71fc17bab91 100644
--- a/src/gallium/drivers/freedreno/a2xx/fd2_context.c
+++ b/src/gallium/drivers/freedreno/a2xx/fd2_context.c
@@ -41,6 +41,7 @@ static void
fd2_context_destroy(struct pipe_context *pctx)
{
fd_context_destroy(pctx);
+ free(pctx);
}
static struct pipe_resource *
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_context.c b/src/gallium/drivers/freedreno/a3xx/fd3_context.c
index 3623b9cf773..bb9dd2893e7 100644
--- a/src/gallium/drivers/freedreno/a3xx/fd3_context.c
+++ b/src/gallium/drivers/freedreno/a3xx/fd3_context.c
@@ -55,6 +55,8 @@ fd3_context_destroy(struct pipe_context *pctx)
fd_hw_query_fini(pctx);
fd_context_destroy(pctx);
+
+ free(fd3_ctx);
}
static const uint8_t primtypes[] = {
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_context.c b/src/gallium/drivers/freedreno/a4xx/fd4_context.c
index 1f5546d2368..12505e83a6c 100644
--- a/src/gallium/drivers/freedreno/a4xx/fd4_context.c
+++ b/src/gallium/drivers/freedreno/a4xx/fd4_context.c
@@ -55,6 +55,8 @@ fd4_context_destroy(struct pipe_context *pctx)
fd_hw_query_fini(pctx);
fd_context_destroy(pctx);
+
+ free(fd4_ctx);
}
static const uint8_t primtypes[] = {
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_context.c b/src/gallium/drivers/freedreno/a5xx/fd5_context.c
index c43a8ad2eca..96e89bc8542 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_context.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_context.c
@@ -54,6 +54,8 @@ fd5_context_destroy(struct pipe_context *pctx)
u_upload_destroy(fd5_ctx->border_color_uploader);
fd_context_destroy(pctx);
+
+ free(fd5_ctx);
}
static const uint8_t primtypes[] = {
diff --git a/src/gallium/drivers/freedreno/freedreno_context.c b/src/gallium/drivers/freedreno/freedreno_context.c
index e1324e8c0af..2eeb85e315e 100644
--- a/src/gallium/drivers/freedreno/freedreno_context.c
+++ b/src/gallium/drivers/freedreno/freedreno_context.c
@@ -172,8 +172,6 @@ fd_context_destroy(struct pipe_context *pctx)
(uint32_t)ctx->stats.batch_gmem, (uint32_t)ctx->stats.batch_nondraw,
(uint32_t)ctx->stats.batch_restore);
}
-
- FREE(ctx);
}
static void