radeon/vce: fix memory leak
authorChristian König <christian.koenig@amd.com>
Fri, 7 Mar 2014 17:31:40 +0000 (18:31 +0100)
committerChristian König <christian.koenig@amd.com>
Sat, 8 Mar 2014 13:43:53 +0000 (14:43 +0100)
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/radeon_vce.c

index 665c1dce57de5c3dbec0cad336a73ffe90fa024d..0d3fe0808672f781d26ad296aafaf32d5acc94b4 100644 (file)
@@ -98,6 +98,7 @@ static void rvce_destroy(struct pipe_video_codec *encoder)
                rvid_destroy_buffer(&fb);
        }
        rvid_destroy_buffer(&enc->cpb);
+       enc->ws->cs_destroy(enc->cs);
        FREE(enc);
 }