Fix crash when focus emergency 58/47158/2 accepted/tizen/mobile/20150901.002151 accepted/tizen/tv/20150901.002200 accepted/tizen/wearable/20150901.002217 submit/tizen/20150831.091959
authorSeungbae Shin <seungbae.shin@samsung.com>
Mon, 31 Aug 2015 09:14:25 +0000 (18:14 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Mon, 31 Aug 2015 09:16:05 +0000 (18:16 +0900)
[Version] Release 0.9.257
[Profile] Common
[Issue Type] Bug Fix

Change-Id: I5879aae62a512c53d309ea9abff9d3ff95ac3e57

mm_sound_client_dbus.c
packaging/libmm-sound.spec

index 561bfe9..4ac4be3 100644 (file)
@@ -2552,14 +2552,14 @@ int mm_sound_client_dbus_finalize(void)
 
        int index = 0;
        int exit_pid = 0;
-       GVariant* params = NULL;
+       GVariant* params = NULL, *result = NULL;
 
        exit_pid = getpid();
        for (index = 0; index < FOCUS_HANDLE_MAX; index++) {
                if (g_focus_sound_handle[index].is_used == true && g_focus_sound_handle[index].focus_tid == exit_pid) {
                        params = g_variant_new("(i)", exit_pid);
                        if (params) {
-                               if ((_dbus_method_call_to(DBUS_TO_FOCUS_SERVER, METHOD_CALL_EMERGENT_EXIT_FOCUS, params, NULL)) != MM_ERROR_NONE) {
+                               if ((_dbus_method_call_to(DBUS_TO_FOCUS_SERVER, METHOD_CALL_EMERGENT_EXIT_FOCUS, params, &result)) != MM_ERROR_NONE) {
                                        debug_error("dbus unset watch focus failed");
                                }
                        } else {
index afb6ccb..bd1a6c5 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and sound_server binary
-Version:    0.9.256
+Version:    0.9.257
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0