diff options
author | Seungbae Shin <seungbae.shin@samsung.com> | 2019-09-30 16:12:31 +0900 |
---|---|---|
committer | Seungbae Shin <seungbae.shin@samsung.com> | 2019-09-30 16:12:31 +0900 |
commit | 056200eeee9cd9bbb08d98e51775cfb030a605f3 (patch) | |
tree | c2eb5098417571dfe6d335952dfb2ac38eb671a2 | |
parent | ba26b2e946252bac676dc38d0924b79f41565776 (diff) | |
download | audio-hal-exynos9110-056200eeee9cd9bbb08d98e51775cfb030a605f3.tar.gz audio-hal-exynos9110-056200eeee9cd9bbb08d98e51775cfb030a605f3.tar.bz2 audio-hal-exynos9110-056200eeee9cd9bbb08d98e51775cfb030a605f3.zip |
Initialize audio_hal_t handle with 0 proerply.tizen_6.0.m2_releasetizen_5.5.m2_releasesubmit/tizen_6.0_hotfix/20201103.114801submit/tizen_6.0_hotfix/20201102.192501submit/tizen_6.0/20201029.205101submit/tizen_5.5_wearable_hotfix/20201026.184301submit/tizen_5.5_mobile_hotfix/20201026.185101submit/tizen_5.5/20191031.000001submit/tizen/20191001.010719submit/tizen/20190930.071405accepted/tizen/unified/20191001.062613accepted/tizen/6.0/unified/hotfix/20201103.051353accepted/tizen/6.0/unified/20201030.123658accepted/tizen/5.5/unified/wearable/hotfix/20201027.122930accepted/tizen/5.5/unified/mobile/hotfix/20201027.081526accepted/tizen/5.5/unified/20191031.014258tizen_6.0_hotfixtizen_6.0tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5accepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unified
fixes initial pulseaudio crash
[Version] 0.1.3
[Issue Type] Crash
Change-Id: I9e7010e998c43bf97854ad3641cfef02615b4bdd
-rw-r--r-- | packaging/audio-hal-exynos9110.spec | 2 | ||||
-rw-r--r-- | tizen-audio.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packaging/audio-hal-exynos9110.spec b/packaging/audio-hal-exynos9110.spec index 38f3aff..5c17fa3 100644 --- a/packaging/audio-hal-exynos9110.spec +++ b/packaging/audio-hal-exynos9110.spec @@ -1,6 +1,6 @@ Name: audio-hal-exynos9110 Summary: TIZEN Audio HAL for Exynos9110(TW3) -Version: 0.1.2 +Version: 0.1.3 Release: 0 Group: System/Libraries License: Apache-2.0 diff --git a/tizen-audio.c b/tizen-audio.c index c587ee0..07f6f97 100644 --- a/tizen-audio.c +++ b/tizen-audio.c @@ -30,7 +30,7 @@ audio_return_t audio_init(void **audio_handle) AUDIO_RETURN_VAL_IF_FAIL(audio_handle, AUDIO_ERR_PARAMETER); - if (!(ah = malloc(sizeof(audio_hal_t)))) { + if (!(ah = calloc(1, sizeof(audio_hal_t)))) { AUDIO_LOG_ERROR("failed to malloc()"); return AUDIO_ERR_RESOURCE; } @@ -87,4 +87,4 @@ audio_return_t audio_deinit(void *audio_handle) ah = NULL; return AUDIO_RET_OK; -}
\ No newline at end of file +} |