audio-io fixed crash at audio_in_read() of another thread.
[platform/core/api/audio-io.git] / test / audio_io_test.c
index 81043ce..ca89a73 100644 (file)
@@ -168,6 +168,7 @@ int audio_io_test(int length, int num, int ch)
 
                fclose(fp);
 
+               audio_in_unprepare(input);
                audio_in_destroy(input);
        }