st/vdpau: destroy handle table only when it's empty

Signed-off-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
Christian König
2013-05-23 19:31:08 +02:00
parent f796b67431
commit 5328c8001b
+1 -1
View File
@@ -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;
}