From 1b62c4243588cfbeadbf28b32107893fdd47a243 Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Fri, 14 Jul 2017 20:40:06 +0900 Subject: [PATCH] fixup! Fix use-after-free crash during get empty codec slot reset of shutdown timer was missing during new handle is created [Version] 0.11.12 [Issue Type] Bug Change-Id: I8915ae1ebbe57d7b34d8889212fd7808b1103802 --- packaging/libmm-sound.spec | 2 +- server/mm_sound_mgr_codec.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/libmm-sound.spec b/packaging/libmm-sound.spec index b257058..86f1c45 100644 --- a/packaging/libmm-sound.spec +++ b/packaging/libmm-sound.spec @@ -1,6 +1,6 @@ Name: libmm-sound Summary: MMSound Package contains client lib and sound_server binary -Version: 0.11.11 +Version: 0.11.12 Release: 0 Group: System/Libraries License: Apache-2.0 diff --git a/server/mm_sound_mgr_codec.c b/server/mm_sound_mgr_codec.c index b04aa88..43b474e 100644 --- a/server/mm_sound_mgr_codec.c +++ b/server/mm_sound_mgr_codec.c @@ -215,6 +215,8 @@ static int _mm_sound_mgr_codec_slot_get_empty(int *slot) sleep(1); } + _mm_sound_mgr_codec_shutdown_timer_stop(); + SLOT_UNLOCK(); return err; -- 2.7.4