diff options
-rw-r--r-- | mm_session.c | 8 | ||||
-rw-r--r-- | packaging/libmm-session.spec | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/mm_session.c b/mm_session.c index 1da3f7d..5b1b29a 100644 --- a/mm_session.c +++ b/mm_session.c @@ -445,6 +445,14 @@ asm_monitor_callback(int handle, ASM_event_sources_t event_src, ASM_sound_comman __attribute__ ((destructor)) void __mmsession_finalize(void) { + int error=0; + + if(g_monitor_asm_handle != -1) { + if(!ASM_unregister_sound(g_monitor_asm_handle, ASM_EVENT_MONITOR, &error)) { + debug_error("ASM unregister failed"); + } + g_monitor_asm_handle = -1; + } _mm_session_util_delete_type(-1); } diff --git a/packaging/libmm-session.spec b/packaging/libmm-session.spec index 0d9e2e3..c0b09a6 100644 --- a/packaging/libmm-session.spec +++ b/packaging/libmm-session.spec @@ -1,10 +1,10 @@ Name: libmm-session -Summary: Mm-session development pkg for samsung -Version: 0.2.0 -Release: 3 +Summary: mm-session development pkg for samsung +Version: 0.2.1 +Release: 1 Group: TO_BE/FILLED_IN License: TO BE FILLED IN -Source0: libmm-session-%{version}.tar.bz2 +Source0: libmm-session-%{version}.tar.gz Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig BuildRequires: pkgconfig(audio-session-mgr) |