Add to check the condition before unlocking mutex in focus watch callback handler 44/201744/1
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 19 Mar 2019 06:25:32 +0000 (15:25 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 19 Mar 2019 06:38:05 +0000 (15:38 +0900)
[Version] 0.12.40
[Issue Type] Bug fix

Change-Id: I767b8d1593ee92f8196a9bbdba9ade0ccdbdafa9
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
mm_sound_focus_private.c
packaging/libmm-sound.spec

index b087839..da33303 100644 (file)
@@ -262,7 +262,8 @@ SKIP_CB_AND_RET:
                                debug_warning("[RETCB][Failed(May Server Close First)]tid(%d) fd(%d) %s errno=%d(%s)",
                                                        tid, tmpfd, filename2, errno, str_error);
                                g_free(filename2);
-                               g_mutex_unlock(&focus_handle->focus_lock);
+                               if (focus_handle->is_used)
+                                       g_mutex_unlock(&focus_handle->focus_lock);
                                return G_SOURCE_CONTINUE;
                        }
                        buf = cb_data.handle;
index 38ead95..2c50937 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and sound_server binary
-Version:    0.12.39
+Version:    0.12.40
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0