summaryrefslogtreecommitdiffstats
path: root/libvo/x11_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r--libvo/x11_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 564824130c..a572560e6c 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -60,7 +60,7 @@ static int dpms_disabled=0;
static int timeout_save=0;
char* mDisplayName=NULL;
-Display* mDisplay;
+Display* mDisplay=NULL;
Window mRootWin;
int mScreen;
int mLocalDisplay;
@@ -381,6 +381,7 @@ void vo_uninit( void )
XSetErrorHandler(NULL);
XCloseDisplay( mDisplay );
vo_depthonscreen = 0;
+ mDisplay=NULL;
}
#include "../linux/keycodes.h"