mirror of
https://github.com/mpv-player/mpv
synced 2024-12-14 19:05:33 +00:00
fix uninit() crash if no config() call
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5415 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ddf20c18da
commit
2ba506f908
@ -224,6 +224,7 @@ static void freeMyXImage()
|
||||
{
|
||||
XDestroyImage( myximage );
|
||||
}
|
||||
myximage=NULL;
|
||||
}
|
||||
|
||||
static uint32_t config( uint32_t width,uint32_t height,uint32_t d_width,uint32_t d_height,uint32_t flags,char *title,uint32_t format,const vo_tune_info_t *info)
|
||||
@ -592,6 +593,8 @@ static uint32_t query_format( uint32_t format )
|
||||
static void
|
||||
uninit(void)
|
||||
{
|
||||
if(!myximage) return;
|
||||
|
||||
freeMyXImage();
|
||||
saver_on(mDisplay); // screen saver back on
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user