[M108 Migration] Fix Crash in webview. 22/289222/4
authorjiangyuwei <yuwei.jiang@samsung.com>
Fri, 3 Mar 2023 01:56:18 +0000 (09:56 +0800)
committerBot Blink <blinkbot@samsung.com>
Fri, 10 Mar 2023 01:46:26 +0000 (01:46 +0000)
Add protection in EWebView::SetOrientation.

Reference:
 - https://review.tizen.org/gerrit/#/c/282815/

Change-Id: If424bac3ecba47971b95c7d4df771c626f3b0fb0
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
tizen_src/ewk/efl_integration/eweb_view.cc

index e459577..3503521 100644 (file)
@@ -503,6 +503,10 @@ EWebView::~EWebView() {
                                    OnCustomScrollBeginCallback);
     evas_object_smart_callback_del(evas_object_, kCustomScrollEndSignalName,
                                    OnCustomScrollEndCallback);
+#if BUILDFLAG(IS_TIZEN)
+    if (window_rotate_handler_)
+      ecore_event_handler_del(window_rotate_handler_);
+#endif
   }
 }