summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-02-24 09:39:00 +0100
committerwm4 <wm4@mplayer2.org>2012-02-24 09:39:00 +0100
commitf684d12db1f547f4845dcee717359c4d6d5eed78 (patch)
tree708feb3e097cf3538c598651c3eb65af9924cd5c
parent9371753dc475b4a541875c8cae16f0cbceddcd50 (diff)
downloadmpv-f684d12db1f547f4845dcee717359c4d6d5eed78.tar.bz2
mpv-f684d12db1f547f4845dcee717359c4d6d5eed78.tar.xz
x11: fix crash when using switch_video (broken by UTF-8 input changes)
-rw-r--r--libvo/x11_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 75d5db90dd..7796d626db 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -742,6 +742,7 @@ void vo_x11_uninit(struct vo *vo)
if (x11->xic)
XDestroyIC(x11->xic);
+ x11->xic = NULL;
XUnmapWindow(x11->display, x11->window);
XSelectInput(x11->display, x11->window, StructureNotifyMask);