diff options
| author | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-14 07:11:50 +0800 |
|---|---|---|
| committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-14 07:11:50 +0800 |
| commit | b234b2be1580dac4e9cb9783ea01365c36557c52 (patch) | |
| tree | d6d2e7fc712315228dec8b970200b61500da45fb /x11 | |
| parent | b4a425733ba6e4882283f2e6fcc618348536bd67 (diff) | |
| download | ibus-b234b2be1580dac4e9cb9783ea01365c36557c52.tar.gz ibus-b234b2be1580dac4e9cb9783ea01365c36557c52.tar.xz ibus-b234b2be1580dac4e9cb9783ea01365c36557c52.zip | |
Use g_new0 replace g_malloc0
Diffstat (limited to 'x11')
| -rw-r--r-- | x11/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -213,7 +213,7 @@ xim_create_ic (XIMS xims, IMChangeICStruct *call_data) call_data->icid = base_icid ++; - ic = g_malloc0 (sizeof (X11IC)); + ic = g_new0 (X11IC, 1); ic->icid = call_data->icid; ic->connect_id = call_data->connect_id; ic->conn = (X11ICONN *)g_hash_table_lookup (_connections, @@ -350,7 +350,7 @@ xim_open (XIMS xims, IMOpenStruct *call_data) g_return_val_if_fail (conn == NULL, 1); - conn = (X11ICONN *) g_malloc0(sizeof (X11ICONN)); + conn = g_new0(X11ICONN, 1); // conn->context = GTK_IM_CONTEXT (gtk_im_multicontext_new ()); g_hash_table_insert (_connections, |
