Change-Id: Ife7a74869c8114eba0d1aaa4670906843d9c7bdc
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
return;
}
char *appId;
- app_get_id(&appId);
+ char *id;
+ app_get_id(&id);
- Ecore_Wl_Window* ecoreWlWindow = AnyCast<Ecore_Wl_Window*>( mNativeWindow );
- screen_connector_provider_remote_enable(appId, ecore_wl_window_surface_get(ecoreWlWindow));
+ // Use strdup() in app_get_id(), so need to free memory
+ if( id )
+ {
+ appId = id;
+ Ecore_Wl_Window* ecoreWlWindow = AnyCast<Ecore_Wl_Window*>( mNativeWindow );
+ screen_connector_provider_remote_enable(appId, ecore_wl_window_surface_get(ecoreWlWindow));
+ free( id );
+ }
#endif
}
void Window::SetAvailableOrientations(const std::vector<Dali::Window::WindowOrientation>& orientations)
{
- int rotations[4];
+ int rotations[4] = { 0 };
for( std::size_t i = 0; i < mAvailableOrientations.size(); ++i )
{
rotations[i] = static_cast< int >( mAvailableOrientations[i] );