Fix deref after null 69/144669/1 accepted/tizen_3.0_ivi accepted/tizen/3.0/common/20170818.112446 accepted/tizen/3.0/ivi/20170818.001551 accepted/tizen/3.0/mobile/20170818.001539 accepted/tizen/3.0/tv/20170818.001542 accepted/tizen/3.0/wearable/20170818.001547 submit/tizen_3.0/20170817.105437
authorHyunho Kang <hhstark.kang@samsung.com>
Thu, 17 Aug 2017 10:48:13 +0000 (19:48 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Thu, 17 Aug 2017 10:49:43 +0000 (19:49 +0900)
Change-Id: I7ee8a408ea2c083fc29530aaf79c2c24161ac74f
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
screen_connector_watcher_evas/src/screen_connector_toolkit_evas.c

index 2004d00..7eda3cd 100644 (file)
@@ -1468,8 +1468,12 @@ EXPORT_API int screen_connector_toolkit_evas_bind(screen_connector_toolkit_evas_
        h->bind_win_id = bind_win_id;
 
        trs = screen_connector_toolkit_get_trs(h->toolkit_h);
-       if (trs)
+       if (trs) {
                tizen_remote_surface_transfer_touch_cancel(trs);
+       } else {
+               LOGE("failed to get tizen remote surface");
+               return -1;
+       }
 
        if (h->cur_buffer) {
                if (tizen_remote_surface_get_version(trs)