[WRTjs][VD][SVACE] Fix svace issue 59/317359/2
authorChunling Ye <chunling.ye@samsung.com>
Mon, 9 Sep 2024 09:31:52 +0000 (17:31 +0800)
committerBot Blink <blinkbot@samsung.com>
Tue, 10 Sep 2024 02:16:45 +0000 (02:16 +0000)
Fix svace issue.

Change-Id: I8a20cefd08139b6af14548f4beb4635b606bbbfa
Signed-off-by: Chunling Ye <chunling.ye@samsung.com>
wrt/src/browser/tv/tv_window_manager.cc

index 71da2b1f258dd6770f46105693838011ca009f11..a661b109dabdd42b7cb5fb230fc62f176e2c6814 100644 (file)
@@ -173,8 +173,10 @@ void GetWindowID(Evas_Object* obj) {
   eina_iterator_free(l);
   struct tizen_resource* tz_resource =
       tizen_surface_get_tizen_resource(tz_surface, wl_surface);
-  if (!tz_resource)
+  if (!tz_resource) {
     LOG(ERROR) << "error to find tz_resource";
+    return;
+  }
 
   wl_proxy_set_queue((struct wl_proxy*)tz_resource, wl_queue);
   tizen_resource_add_listener(tz_resource, &tz_resource_listener,