Commit 99a2b5b7 authored by Rémi Duraffort's avatar Rémi Duraffort

No need to set p_sys to NULL when the module is closed.

parent 46934474
...@@ -78,7 +78,7 @@ vlc_module_end () ...@@ -78,7 +78,7 @@ vlc_module_end ()
static int Create( vlc_object_t *p_this ) static int Create( vlc_object_t *p_this )
{ {
vout_thread_t *p_vout = (vout_thread_t *)p_this; vout_thread_t *p_vout = (vout_thread_t *)p_this;
vout_sys_t *p_sys = NULL; vout_sys_t *p_sys;
p_vout->pf_init = Init; p_vout->pf_init = Init;
p_vout->pf_end = End; p_vout->pf_end = End;
p_vout->pf_manage = Manage; p_vout->pf_manage = Manage;
...@@ -263,7 +263,6 @@ static void Destroy( vlc_object_t *p_this ) ...@@ -263,7 +263,6 @@ static void Destroy( vlc_object_t *p_this )
CloseDisplay( p_vout ); CloseDisplay( p_vout );
free( p_sys ); free( p_sys );
p_sys = NULL;
} }
static int Manage( vout_thread_t *p_vout ) static int Manage( vout_thread_t *p_vout )
......
...@@ -438,7 +438,6 @@ static void CloseVideo( vlc_object_t *p_this ) ...@@ -438,7 +438,6 @@ static void CloseVideo( vlc_object_t *p_this )
RestoreScreensaver( p_vout ); RestoreScreensaver( p_vout );
free( p_vout->p_sys ); free( p_vout->p_sys );
p_vout->p_sys = NULL;
} }
/***************************************************************************** /*****************************************************************************
......
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