From: sunghyun kim Date: Fri, 26 Jan 2024 06:42:13 +0000 (+0900) Subject: Fix crash issue when restarting widgetApp X-Git-Tag: accepted/tizen/7.0/unified/20240126.155607^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72eea888f1df4eda705f10640fced1c8b6c968c4;p=platform%2Fcore%2Fuifw%2Fwidget-viewer-dali.git Fix crash issue when restarting widgetApp In the existing code, the remote surface was cleared here. However, in general, WIDGET_INSTANCE_EVENT_FAULT is called later, so we can clear it at that time. Currently, if we clear in advance at this point, a crash may occur in the process of restarting the widget. (It seems that the malloc issue occurs in the process of replacing the existing callback) Therefore, to avoid this crash, delete the part that was cleared at this point. Change-Id: I4f54546a36295ae26382a39bb13913153b32cf69 --- diff --git a/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp b/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp index 0a8c8de..7c28c2c 100644 --- a/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp +++ b/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp @@ -174,12 +174,6 @@ static void OnBufferAdded( const char *appid, const char *instance_id, const int static void OnSurfaceRemoved( const char *appid, const char *instance_id, const int pid, void *data ) { - Dali::WidgetView::Internal::WidgetView* widgetView = static_cast< Dali::WidgetView::Internal::WidgetView* >( data ); - - if( widgetView && !widgetView->IsWidgetFaulted() ) - { - widgetView->CloseRemoteSurface(); - } } } // unnamed namespace