# HG changeset patch # User arpi # Date 1017541360 0 # Node ID 6918c74caa4d3af1c8dc97776ac09d01cc8d5a64 # Parent 5838af403d1af9527780945de65ce60a5d543e48 1 step closed to solving memory corruptions diff -r 5838af403d1a -r 6918c74caa4d mplayer.c --- a/mplayer.c Sat Mar 30 23:18:40 2002 +0000 +++ b/mplayer.c Sun Mar 31 02:22:40 2002 +0000 @@ -306,6 +306,7 @@ inited_flags&=~INITED_SPUDEC; current_module="uninit_spudec"; spudec_free(vo_spudec); + vo_spudec=NULL; } #endif if(mask&INITED_VO){ @@ -1120,10 +1121,10 @@ current_module="spudec_init"; vo_spudec=spudec_new_scaled(stream->type==STREAMTYPE_DVD?((dvd_priv_t *)(stream->priv))->cur_pgc->palette:NULL, sh_video->disp_w, sh_video->disp_h); +} +#endif if (vo_spudec!=NULL) inited_flags|=INITED_SPUDEC; -} -#endif #ifdef USE_SUB // after reading video params we should load subtitles because @@ -2789,12 +2790,15 @@ current_module="uninit_vcodec"; if(sh_video) uninit_video(sh_video); + sh_video=NULL; current_module="free_demuxer"; if(demuxer) free_demuxer(demuxer); + demuxer=NULL; current_module="free_stream"; if(stream) free_stream(stream); + stream=NULL; current_module="sub_free"; if ( subtitles )