From 72eea888f1df4eda705f10640fced1c8b6c968c4 Mon Sep 17 00:00:00 2001 From: sunghyun kim Date: Fri, 26 Jan 2024 15:42:13 +0900 Subject: [PATCH] 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 --- .../internal/widget_view/widget_view_impl.cpp | 6 ------ 1 file changed, 6 deletions(-) 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 -- 2.34.1