Fix SVACE defect 66/109266/1
authorSeungbae Shin <seungbae.shin@samsung.com>
Mon, 9 Jan 2017 13:29:34 +0000 (22:29 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Mon, 9 Jan 2017 13:30:22 +0000 (22:30 +0900)
[Version] 0.3.52
[Profile] Common
[Issue Type] SVACE

Change-Id: Ia05106422548696ebdfc99401780f1522939a9b0

packaging/capi-media-audio-io.spec
src/cpp/cpp_audio_io.cpp

index f91925c..1be2102 100644 (file)
@@ -1,6 +1,6 @@
 Name:           capi-media-audio-io
 Summary:        An Audio Input & Audio Output library in Tizen Native API
-Version:        0.3.51
+Version:        0.3.52
 Release:        0
 Group:          Multimedia/API
 License:        Apache-2.0
index 36babbc..902107e 100644 (file)
@@ -1026,7 +1026,7 @@ int cpp_audio_out_create(int sample_rate, audio_channel_e channel, audio_sample_
         CAudioInfo audioInfo = __generate_audio_output_info(sample_rate, channel, type, sound_type);
 
         handle->audioIoHandle = new CAudioOutput(audioInfo);
-        if (handle == NULL) {
+        if (handle->audioIoHandle == NULL) {
             THROW_ERROR_MSG(CAudioError::EError::ERROR_OUT_OF_MEMORY, "Failed allocation internal handle");
         }