Fix ibus-x11 SEGV in _process_key_event_done.
authorfujiwarat <takao.fujiwara1@gmail.com>
Fri, 6 Apr 2012 03:11:35 +0000 (12:11 +0900)
committerfujiwarat <takao.fujiwara1@gmail.com>
Fri, 6 Apr 2012 03:11:35 +0000 (12:11 +0900)
commit991eebc31aa605fbce03edda6eaecfd06c2fcb1b
treeb6019dabae01e9a85712cf6ff9e93656f9ec7187
parentb620e0bcda97934d6927b7cdde300598ac5de45f
Fix ibus-x11 SEGV in _process_key_event_done.

IMForwardEvent() calls _Xi18nFindClient() and it could return NULL.
Maybe the connect_id would be disconnected during the async
process_key_event.
This fix checks XIM_DISCONNECT in ims_protocol_handler() to cancel
IMForwardEvent() in _process_key_event_done().

BUG=RH#769135
TEST=Linux desktop

Review URL: https://codereview.appspot.com/5498090
client/x11/main.c