diff options
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r-- | libvo/vo_x11.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index b1d01f491a..c164c3067b 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -362,9 +362,14 @@ static uint32_t config( uint32_t width,uint32_t height,uint32_t d_width,uint32_t #endif } + if ( vo_gc != None ) XFreeGC( mDisplay,vo_gc ); vo_gc=XCreateGC( mDisplay,vo_window,0L,&xgcv ); - if ( myximage ) freeMyXImage(); + if ( myximage ) + { + freeMyXImage(); + freeSwsContext(swsContext); + } getMyXImage(); if ( !WinID ) |