Routing to usb was rejected due to incorrect card number am: 1e02c88b8f am: 6fc7f8fe07
am: 1b3f6c1931

Change-Id: Ife6345d3c6f9c2518b86c1e4ebe51681cecd3da9
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index e66ad9a..72e5c05 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -3939,6 +3939,7 @@
     out->error_log = NULL;
 
     pthread_cond_destroy(&out->cond);
+    pthread_mutex_destroy(&out->pre_lock);
     pthread_mutex_destroy(&out->lock);
     free(stream);
     ALOGV("%s: exit", __func__);
@@ -4484,6 +4485,9 @@
     error_log_destroy(in->error_log);
     in->error_log = NULL;
 
+    pthread_mutex_destroy(&in->pre_lock);
+    pthread_mutex_destroy(&in->lock);
+
     free(stream);
 
     return;
@@ -4651,6 +4655,7 @@
         }
         if (adev->adm_deinit)
             adev->adm_deinit(adev->adm_data);
+        pthread_mutex_destroy(&adev->lock);
         free(device);
     }