# HG changeset patch # User arpi # Date 1017543792 0 # Node ID 871f8ebecdef670f0a8d3ec917976ff0066c481d # Parent 2a449fba2049688779daca10c435ca14c759e996 fix uninit() crash if no config() call diff -r 2a449fba2049 -r 871f8ebecdef libvo/vo_x11.c --- a/libvo/vo_x11.c Sun Mar 31 02:57:53 2002 +0000 +++ b/libvo/vo_x11.c Sun Mar 31 03:03:12 2002 +0000 @@ -224,6 +224,7 @@ { 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 void uninit(void) { + if(!myximage) return; + freeMyXImage(); saver_on(mDisplay); // screen saver back on