summaryrefslogtreecommitdiff
path: root/freedreno/msm/msm_pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'freedreno/msm/msm_pipe.c')
-rw-r--r--freedreno/msm/msm_pipe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/freedreno/msm/msm_pipe.c b/freedreno/msm/msm_pipe.c
index f28778ef..e070b317 100644
--- a/freedreno/msm/msm_pipe.c
+++ b/freedreno/msm/msm_pipe.c
@@ -138,6 +138,12 @@ static void msm_pipe_destroy(struct fd_pipe *pipe)
{
struct msm_pipe *msm_pipe = to_msm_pipe(pipe);
close_submitqueue(pipe, msm_pipe->queue_id);
+
+ if (msm_pipe->suballoc_ring) {
+ fd_ringbuffer_del(msm_pipe->suballoc_ring);
+ msm_pipe->suballoc_ring = NULL;
+ }
+
free(msm_pipe);
}