summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-12-26 12:07:14 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-12-26 12:07:14 +0000
commit3241bdffd6ca7f17a49ca3c2df4737e747e56ea8 (patch)
tree380fb084b2ed94bcb61a16b997f9d389aefd7120 /mplayer.c
parent487ddca70c65de5bfa1f79d725659ff807c22daa (diff)
downloadmpv-3241bdffd6ca7f17a49ca3c2df4737e747e56ea8.tar.bz2
mpv-3241bdffd6ca7f17a49ca3c2df4737e747e56ea8.tar.xz
Set some freed pointers to NULL.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30118 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index a30da0f119..ef11a39e4e 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -699,6 +699,7 @@ void exit_player_with_rc(exit_reason_t how, int rc){
#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 how, int rc){
// 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);