fixup! [WRTjs][VD] Optimize zoneframe logic 20/324220/1
authorzhaosy <shiyusy.zhao@samsung.com>
Wed, 14 May 2025 07:34:36 +0000 (15:34 +0800)
committerzhaosy <shiyusy.zhao@samsung.com>
Wed, 14 May 2025 07:34:36 +0000 (15:34 +0800)
zone_release_context is not called

Change-Id: I56a23c6c86cc9a6afd7a1b2a0235270ad809cd7b
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
wrt/src/common/tv/wrt_lib_wrapper.cc

index c23f65807a6f4cf72115046b403d4f29370c3390..fab9cd67535da9a55764052886dcf80ed0388616 100644 (file)
@@ -280,7 +280,9 @@ int zone_attach_process(zone_context_h zone_context) {
 
 void zone_release_context(zone_context_h* zone_context) {
   typedef void (*func_sig)(zone_context_h*);
-  GetFunction(kZoneLibPath, __FUNCTION__);
+  auto* func = (func_sig)GetFunction(kZoneLibPath, __FUNCTION__);
+  if (func)
+    return func(zone_context);
 }
 
 }  // namespace wrt