From 66db9ec7d6a9f869dc922ad9a9b8a5d278577bab Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Wed, 30 Apr 2008 09:14:06 +0300 Subject: Remove INITIALIZED_INPUT from mpctx->initialized_flags The input functions are never uninited except at exit. Move the uninit to player exit function and remove the flag. --- input/input.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'input') diff --git a/input/input.c b/input/input.c index 8f5951613a..3d898aa0af 100644 --- a/input/input.c +++ b/input/input.c @@ -1770,6 +1770,9 @@ struct input_ctx *mp_input_init(int use_gui) void mp_input_uninit(struct input_ctx *ictx) { + if (!ictx) + return; + unsigned int i; mp_cmd_bind_section_t* bind_section; -- cgit v1.2.3