summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-10-01 14:07:03 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-10-01 14:07:03 +0800
commit0394896c4eaed931eaba4c444cb3a3c58a23271a (patch)
tree508cabbafca07b99664df08da3c58262088a0f2c /client
parentf33d3aac4c3d6dfea5775238128278443ce2d678 (diff)
downloadibus-0394896c4eaed931eaba4c444cb3a3c58a23271a.tar.gz
ibus-0394896c4eaed931eaba4c444cb3a3c58a23271a.tar.xz
ibus-0394896c4eaed931eaba4c444cb3a3c58a23271a.zip
Free preedit_string & preedit_attrs.
Diffstat (limited to 'client')
-rw-r--r--client/x11/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/x11/main.c b/client/x11/main.c
index 960791b..e2aaef2 100644
--- a/client/x11/main.c
+++ b/client/x11/main.c
@@ -321,7 +321,10 @@ xim_destroy_ic (XIMS xims, IMChangeICStruct *call_data)
(gconstpointer)(unsigned long)call_data->icid);
x11ic->conn->clients = g_list_remove (x11ic->conn->clients, (gconstpointer)x11ic);
+ g_free (x11ic->preedit_string);
+ pango_attr_list_unref (x11ic->preedit_attrs);
g_free (x11ic->ibus_ic);
+
g_slice_free (X11IC, x11ic);
return 1;
@@ -431,6 +434,8 @@ _free_ic (gpointer data, gpointer user_data)
g_return_if_fail (x11ic != NULL);
+ g_free (x11ic->preedit_string);
+ pango_attr_list_unref (x11ic->preedit_attrs);
g_free (x11ic->ibus_ic);
/* Remove the IC from g_client dictionary */