From: Samuel Pitoiset Date: Tue, 8 Mar 2016 18:01:13 +0000 (+0100) Subject: nv50,nvc0: make sure to destroy the mutex used for blits X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=752769e0531bc9b15e95a2bb2250dc0970b1a421;p=mesa.git nv50,nvc0: make sure to destroy the mutex used for blits This mutex is initialized when the blitter is created, but it is never destroyed. This doesn't hurt anything but it makes sense to destroy it at blitter deletion. Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/nv50/nv50_surface.c b/src/gallium/drivers/nouveau/nv50/nv50_surface.c index 4db73cb7fef..84646f6adb1 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_surface.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_surface.c @@ -1756,6 +1756,7 @@ nv50_blitter_destroy(struct nv50_screen *screen) } } + pipe_mutex_destroy(blitter->mutex); FREE(blitter); } diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c index 49577969d3d..09b31153ab8 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c @@ -1644,6 +1644,7 @@ nvc0_blitter_destroy(struct nvc0_screen *screen) } } + pipe_mutex_destroy(blitter->mutex); FREE(blitter); }