Fix Svace issue (DEREF_OF_NULL) 59/296959/2 accepted/tizen_8.0_unified accepted/tizen_unified tizen tizen_8.0 accepted/tizen/8.0/unified/20231005.093503 accepted/tizen/unified/20230808.170219 tizen_8.0_m2_release
authorGilbok Lee <gilbok.lee@samsung.com>
Tue, 8 Aug 2023 03:00:09 +0000 (12:00 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 8 Aug 2023 06:07:57 +0000 (15:07 +0900)
[Version] 0.3.13
[Issue Type] Fix bugs

Change-Id: Ie1212cafc05a018c6a063758e9584010c93f4d20

packaging/libmm-wfd.spec
src/mm_wfd_sink_priv.c

index 9623c7c..d13175d 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-wfd
 Summary:    Multimedia Framework Wifi-Display Library
-Version:    0.3.12
+Version:    0.3.13
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index 2f422b0..442b6ff 100644 (file)
@@ -5007,6 +5007,10 @@ int _mm_wfd_sink_set_display_overlay(mm_wfd_sink_t *wfd_sink, void *display_obje
        if (display_type == MM_DISPLAY_TYPE_OVERLAY) {
                obj = (Evas_Object *)object;
                object_type = evas_object_type_get(obj);
+               if (!object_type) {
+                       wfd_sink_error("failed to get evas object type from %p", obj);
+                       return MM_ERROR_WFD_INTERNAL;
+               }
                wfd_sink_debug("window object type : %s", object_type);
 
                if (strcmp(object_type, "elm_win")) {