summaryrefslogtreecommitdiffstats
path: root/bus
diff options
context:
space:
mode:
authorPeng Huang <phuang@phuang.nay.redhat.com>2009-02-10 18:02:13 +0800
committerPeng Huang <phuang@phuang.nay.redhat.com>2009-02-10 18:02:13 +0800
commit46dee933ac3c2b140a6d65056a5ed5876302cd25 (patch)
treed30a9e4501cb031592db6ae6f11830414dbaa2aa /bus
parent1e931b56967fd7f589fab3c8081b3bdf13c49f1a (diff)
downloadibus-46dee933ac3c2b140a6d65056a5ed5876302cd25.tar.gz
ibus-46dee933ac3c2b140a6d65056a5ed5876302cd25.tar.xz
ibus-46dee933ac3c2b140a6d65056a5ed5876302cd25.zip
Fix crash problems.
Diffstat (limited to 'bus')
-rw-r--r--bus/inputcontext.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bus/inputcontext.c b/bus/inputcontext.c
index c512e82..be45bbe 100644
--- a/bus/inputcontext.c
+++ b/bus/inputcontext.c
@@ -558,13 +558,14 @@ _ic_process_key_event_reply_cb (gpointer data,
{
gboolean retval;
CallData *call_data;
-
IBusMessage *reply;
- BusInputContextPrivate *priv;
- priv = BUS_INPUT_CONTEXT_GET_PRIVATE (call_data->context);
retval = (gboolean) GPOINTER_TO_INT (data);
call_data = (CallData *) user_data;
+
+ BusInputContextPrivate *priv;
+ priv = BUS_INPUT_CONTEXT_GET_PRIVATE (call_data->context);
+
reply = ibus_message_new_method_return (call_data->message);
ibus_message_append_args (reply,