diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-16 20:34:23 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-16 20:34:23 +0800 |
commit | fc4485f5d6bcaa150279420ee53ba4dda0b00707 (patch) | |
tree | 87f183469e02ab8cda3f91d981b7a8b9252a879f /lib/gtk2 | |
parent | 5c5f5077439017b3e4d795fedc34e51053ba6d89 (diff) | |
download | ibus-fc4485f5d6bcaa150279420ee53ba4dda0b00707.tar.gz ibus-fc4485f5d6bcaa150279420ee53ba4dda0b00707.tar.xz ibus-fc4485f5d6bcaa150279420ee53ba4dda0b00707.zip |
WIP.
Diffstat (limited to 'lib/gtk2')
-rw-r--r-- | lib/gtk2/ibusimclient.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gtk2/ibusimclient.c b/lib/gtk2/ibusimclient.c index 2ec6613..ee6dbce 100644 --- a/lib/gtk2/ibusimclient.c +++ b/lib/gtk2/ibusimclient.c @@ -1110,7 +1110,8 @@ _key_press_call_data_new (IBusIMClient *client, const gchar *ic, GdkEvent *event p->client = g_object_ref (client); p->ic = g_strdup (ic); p->event = *event; - g_object_ref (p->event.any.window); + if (p->event.any.window) + g_object_ref (p->event.any.window); return p; } @@ -1120,7 +1121,8 @@ _key_press_call_data_free (KeyPressCallData *p) if (p) { g_object_unref (p->client); g_free (p->ic); - g_object_unref (p->event.any.window); + if (p->event.any.window) + g_object_unref (p->event.any.window); } g_free (p); } |