Commit 2a9b3101 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

OSD: use picture_Release() not free() !

parent a69d057f
...@@ -235,10 +235,7 @@ void osd_StatesFree( osd_menu_t *p_menu, osd_state_t *p_states ) ...@@ -235,10 +235,7 @@ void osd_StatesFree( osd_menu_t *p_menu, osd_state_t *p_states )
if( p_state->p_next ) if( p_state->p_next )
{ {
if( p_state->p_next->p_pic ) if( p_state->p_next->p_pic )
{ picture_Release( p_state->p_next->p_pic );
free( p_state->p_next->p_pic->p_data_orig );
free( p_state->p_next->p_pic );
}
free( p_state->p_next->psz_state ); free( p_state->p_next->psz_state );
free( p_state->p_next ); free( p_state->p_next );
p_state->p_next = NULL; p_state->p_next = NULL;
...@@ -250,10 +247,7 @@ void osd_StatesFree( osd_menu_t *p_menu, osd_state_t *p_states ) ...@@ -250,10 +247,7 @@ void osd_StatesFree( osd_menu_t *p_menu, osd_state_t *p_states )
msg_Dbg( p_menu, " |- freeing state %s [%p]", msg_Dbg( p_menu, " |- freeing state %s [%p]",
p_state->psz_state, p_states ); p_state->psz_state, p_states );
if( p_states->p_pic ) if( p_states->p_pic )
{ picture_Release( p_state->p_next->p_pic );
free( p_states->p_pic->p_data_orig );
free( p_states->p_pic );
}
free( p_state->psz_state ); free( p_state->psz_state );
free( p_states ); free( p_states );
} }
......
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