mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 03:06:28 +01:00
Fixed double free of data. Patch by Dima K. <dimakar@yahoo.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10795 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f5e785c918
commit
c050413677
@ -636,7 +636,7 @@ void vo_x11_uninit()
|
||||
saver_on(mDisplay);
|
||||
if(vo_window!=None) vo_showcursor( mDisplay,vo_window );
|
||||
|
||||
if (f_gc) XFreeGC(mDisplay, f_gc);
|
||||
if (f_gc) { XFreeGC(mDisplay, f_gc); f_gc = NULL; }
|
||||
|
||||
#ifdef HAVE_NEW_GUI
|
||||
/* destroy window only if it's not controlled by GUI */
|
||||
|
Loading…
Reference in New Issue
Block a user