+static inline void es_format_Clean( es_format_t *fmt )
+{
+ if( fmt->psz_language ) free( fmt->psz_language );
+ fmt->psz_language = 0;
+ if( fmt->psz_description ) free( fmt->psz_description );
+ fmt->psz_description = 0;
+ if( fmt->i_extra > 0 ) free( fmt->p_extra );
+ fmt->i_extra = 0; fmt->p_extra = 0;
+ if( fmt->video.p_palette ) free( fmt->video.p_palette );
+ fmt->video.p_palette = 0;
+}