diff options
author | attila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-12-08 12:03:03 +0000 |
---|---|---|
committer | attila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-12-08 12:03:03 +0000 |
commit | a6bd35c9a2d7618b5d9eeb17751e1fd8fddf04bf (patch) | |
tree | a1a6ee7fb021d0792beced1ef8ec14e2b1b9b13a /libvo | |
parent | bc0dc00da7cf99863b5581aa6dd659370a9ef6e4 (diff) |
prevent possible segfault when vidmodes is freed and config() calls vo_vm_switch
again.
Found by Peter Kosinar <goober@ksp.sk>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11580 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/x11_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 0fd9bc92e9..c12d05dc8b 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -1376,6 +1376,7 @@ void vo_vm_close(Display *dpy) XF86VidModeSwitchToMode(dpy,screen,vidmodes[i]); XF86VidModeSwitchToMode(dpy,screen,vidmodes[i]); free(vidmodes); + vidmodes = NULL; } } #endif |