Fix a crash issue which happend after scmirroring_sink_disconnect API 79/49379/1
authorSangkyu Park <sk1122.park@samsung.com>
Thu, 17 Sep 2015 05:53:24 +0000 (14:53 +0900)
committerSangkyu Park <sk1122.park@samsung.com>
Mon, 12 Oct 2015 07:16:51 +0000 (16:16 +0900)
Change-Id: I604008dd6180b78db17e82e774b80a13d3a55883
Signed-off-by: Sangkyu Park <sk1122.park@samsung.com>
common/include/mm_wfd_sink_dlog.h
packaging/libmm-wfd.spec
sink/include/mm_wfd_sink_manager.h
sink/mm_wfd_sink_manager.c

index d2880d050ceeeff8186c51e2539f2948295b0003..58082e815b3a4cb2d51f0fc1e6621777ada9d41a 100755 (executable)
@@ -62,11 +62,11 @@ extern "C" {
        } while (0)
 
 #define wfd_sink_error_fenter() do { \
-               LOGE(FONT_COLOR_RESET"NO-ERROR : <Enter>");     \
+               LOGE(FONT_COLOR_RED"NO-ERROR : <Enter>"FONT_COLOR_RESET);     \
        } while (0)
 
 #define wfd_sink_error_fleave() do { \
-               LOGE(FONT_COLOR_RESET"NO-ERROR : <Leave>");     \
+               LOGE(FONT_COLOR_RED"NO-ERROR : <Leave>"FONT_COLOR_RESET);     \
        } while (0)
 
 #define wfd_sink_sucure_info(fmt, arg...) do { \
index a7fccd4234282ddbe9491342b436ed27ffc3ccc8..2f1989e63d32b32be28a31a97a0ceccb101e055e 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       libmm-wfd
 Summary:    Multimedia Framework Wifi-Display Library
-Version:    0.2.187
+Version:    0.2.188
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index 724d3628c215ae20a1e882bcfd12ca8806ee2c3a..47309e3f03736687e7cd42db6cff3e22132a5242 100755 (executable)
@@ -64,6 +64,7 @@ extern "C" {
                WFD_SINK_MANAGER_LOCK(wfd_sink);\
                if (cmd == WFD_SINK_MANAGER_CMD_EXIT) {\
                        g_list_free(wfd_sink->manager_thread_cmd);\
+                       wfd_sink->manager_thread_cmd = NULL;\
                        wfd_sink->manager_thread_exit = TRUE;\
                }\
                wfd_sink->manager_thread_cmd = g_list_append(wfd_sink->manager_thread_cmd, GINT_TO_POINTER(cmd)); \
index f59ee365345adfea81ab49b81c42d07455fd2511..3eb86f965588affd647988ec8b8f4ca9df4ebe5b 100755 (executable)
@@ -160,7 +160,8 @@ __mm_wfd_sink_manager_thread(gpointer data)
 
 EXIT:
        wfd_sink->manager_thread_exit = TRUE;
-
+       g_list_free(wfd_sink->manager_thread_cmd);
+       wfd_sink->manager_thread_cmd = NULL;
        WFD_SINK_MANAGER_UNLOCK(wfd_sink);
 
        return NULL;