Commit 0819f100 authored by Ludovic Fauvet's avatar Ludovic Fauvet

video player: do a NULL check before destroying the view

parent 92eb9339
......@@ -649,6 +649,8 @@ create_video_player(interface *intf, playback_service *p_ps, Evas_Object *parent
void
destroy_video_player(interface_view *view)
{
if (view == NULL)
return;
video_player_stop(view->p_view_sys);
playback_service_set_evas_video(view->p_view_sys->p_ps, NULL);
free(view->p_view_sys);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment