[MPlayer-cvslog] r30118 - trunk/mplayer.c
reimar
subversion at mplayerhq.hu
Sat Dec 26 13:07:14 CET 2009
Author: reimar
Date: Sat Dec 26 13:07:14 2009
New Revision: 30118
Log:
Set some freed pointers to NULL.
Modified:
trunk/mplayer.c
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c Sat Dec 26 13:04:48 2009 (r30117)
+++ trunk/mplayer.c Sat Dec 26 13:07:14 2009 (r30118)
@@ -699,6 +699,7 @@ void exit_player_with_rc(exit_reason_t h
#ifdef CONFIG_ASS
ass_library_done(ass_library);
+ ass_library = NULL;
#endif
current_module="exit_player";
@@ -706,14 +707,18 @@ void exit_player_with_rc(exit_reason_t h
// free mplayer config
if(mconfig)
m_config_free(mconfig);
+ mconfig = NULL;
if(mpctx->playtree_iter)
play_tree_iter_free(mpctx->playtree_iter);
+ mpctx->playtree_iter = NULL;
if(mpctx->playtree)
play_tree_free(mpctx->playtree, 1);
+ mpctx->playtree = NULL;
if(edl_records != NULL) free(edl_records); // free mem allocated for EDL
+ edl_records = NULL;
switch(how) {
case EXIT_QUIT:
mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_ExitingHow,MSGTR_Exit_quit);
More information about the MPlayer-cvslog
mailing list