Mercurial > mplayer.hg
diff libvo/vo_x11.c @ 7765:dbf1e5cfadbd
fix memleak
author | pontscho |
---|---|
date | Wed, 16 Oct 2002 22:44:09 +0000 |
parents | 13c36b2d1d45 |
children | 143d730908ae |
line wrap: on
line diff
--- a/libvo/vo_x11.c Wed Oct 16 22:29:00 2002 +0000 +++ b/libvo/vo_x11.c Wed Oct 16 22:44:09 2002 +0000 @@ -362,9 +362,14 @@ #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 )