Commit 9b14f80f authored by Jean-Paul Saman's avatar Jean-Paul Saman

Use NULL iso 0 (is more portable)

parent 32e5b144
...@@ -267,7 +267,8 @@ static inline void es_format_Clean( es_format_t *fmt ) ...@@ -267,7 +267,8 @@ static inline void es_format_Clean( es_format_t *fmt )
fmt->psz_description = NULL; fmt->psz_description = NULL;
if( fmt->i_extra > 0 ) free( fmt->p_extra ); if( fmt->i_extra > 0 ) free( fmt->p_extra );
fmt->i_extra = 0; fmt->p_extra = NULL; fmt->i_extra = 0;
fmt->p_extra = NULL;
if( fmt->video.p_palette ) free( fmt->video.p_palette ); if( fmt->video.p_palette ) free( fmt->video.p_palette );
fmt->video.p_palette = NULL; fmt->video.p_palette = NULL;
...@@ -287,5 +288,4 @@ static inline void es_format_Clean( es_format_t *fmt ) ...@@ -287,5 +288,4 @@ static inline void es_format_Clean( es_format_t *fmt )
free(fmt->p_extra_languages); free(fmt->p_extra_languages);
} }
} }
#endif #endif
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