From: Christian König Date: Thu, 23 May 2013 17:31:08 +0000 (+0200) Subject: st/vdpau: destroy handle table only when it's empty X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5328c8001b26b5a341edaec3618919dd8a4de52f;p=mesa.git st/vdpau: destroy handle table only when it's empty Signed-off-by: Christian König --- diff --git a/src/gallium/state_trackers/vdpau/htab.c b/src/gallium/state_trackers/vdpau/htab.c index 39ff7be3786..8b809f2cb5e 100644 --- a/src/gallium/state_trackers/vdpau/htab.c +++ b/src/gallium/state_trackers/vdpau/htab.c @@ -55,7 +55,7 @@ void vlDestroyHTAB(void) { #ifdef VL_HANDLES pipe_mutex_lock(htab_lock); - if (htab) { + if (htab && !handle_table_get_first_handle(htab)) { handle_table_destroy(htab); htab = NULL; }