projects
/
platform
/
upstream
/
ibus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6f53ea
)
Fix segfault when starting ibus.
author
Huang Peng
<shawn.p.huang@gmail.com>
Thu, 21 Aug 2008 03:13:04 +0000
(11:13 +0800)
committer
Huang Peng
<shawn.p.huang@gmail.com>
Thu, 21 Aug 2008 03:13:04 +0000
(11:13 +0800)
client/gtk2/ibusimcontext.c
patch
|
blob
|
history
diff --git
a/client/gtk2/ibusimcontext.c
b/client/gtk2/ibusimcontext.c
index
e6787f1
..
3bc1bef
100644
(file)
--- a/
client/gtk2/ibusimcontext.c
+++ b/
client/gtk2/ibusimcontext.c
@@
-438,6
+438,8
@@
_client_connected_cb (IBusIMClient *client, gpointer user_data)
context = g_array_index (_im_context_array, IBusIMContext *, i);
ic = ibus_im_client_create_input_context (client);
ibus_im_context_set_ic (context, ic);
+ if (ic == NULL)
+ continue;
g_hash_table_insert (_ic_table,
(gpointer) ibus_im_context_get_ic (context), (gpointer) context);
}