[M120 Migration][VD] Remove OnParentViewResize in destruction. 05/308705/1 accepted/tizen/unified/20240329.230603 accepted/tizen/unified/x/20240401.013242 accepted/tizen/unified/x/20240401.142252
authorwangjing <jing124.wang@samsung.com>
Fri, 29 Mar 2024 05:27:24 +0000 (13:27 +0800)
committerwangjing <jing124.wang@samsung.com>
Fri, 29 Mar 2024 05:27:24 +0000 (13:27 +0800)
Remove OnParentViewResize in destrunction to avoid invalid
callback was called which will cause evas_gl error.

Ref:
https://review.tizen.org/gerrit/#/c/300386/

Change-Id: Ic0b8a426c557d645488971f0437bec548813d24f
Signed-off-by: wangjing <jing124.wang@samsung.com>
tizen_src/chromium_impl/content/browser/renderer_host/rwhv_aura_offscreen_helper_efl.cc

index b80674e..cfe14d5 100644 (file)
@@ -186,6 +186,8 @@ RWHVAuraOffscreenHelperEfl::~RWHVAuraOffscreenHelperEfl() {
                                  OnHostFocusIn);
   evas_object_smart_callback_del(content_image_elm_host_, "unfocused",
                                  OnHostFocusOut);
+  evas_object_event_callback_del_full(efl_main_layout_, EVAS_CALLBACK_RESIZE,
+                                      OnParentViewResize, this);
   evas_event_callback_del_full(evas_, EVAS_CALLBACK_RENDER_FLUSH_PRE,
                                OnEvasRenderFlushPre, this);
   evas_object_del(content_image_);