Fix exception handling of 'new' operator. 99/131399/4
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Mon, 29 May 2017 02:38:53 +0000 (11:38 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Tue, 25 Jul 2017 07:08:06 +0000 (07:08 +0000)
commitcb4950fb461e27453fb8b6767679aff311756270
tree18347c4e291c34e84bcbc5e4548ed926139ba39a
parent20b14df3ee6f2addbc5fed71dde71ed5c1ebce3e
Fix exception handling of 'new' operator.

If it fails memory allocation by calling operator 'new', 'std:bad_alloc' exception will throw.
Therefore, never check null-pointer at next line. These situations cause potential leak also.
This patch uses exception handling of 'new' operator instead of checking null-pointer.

[Version] 0.3.77
[Profile] Common
[Issue Type] Bug

Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
Change-Id: Ibdd9c4d93273d1a0874eee4cdb5056ff5ae35407
packaging/capi-media-audio-io.spec
src/cpp/CAudioInput.cpp
src/cpp/CAudioOutput.cpp
src/cpp/cpp_audio_io.cpp