Author: ek.kato
Date: Wed Jan 14 21:24:24 2009
New Revision: 5717
Modified:
branches/1.5/uim/uim-helper-client.c
Log:
* Port r5716 from trunk.
Modified: branches/1.5/uim/uim-helper-client.c
==============================================================================
--- branches/1.5/uim/uim-helper-client.c (original)
+++ branches/1.5/uim/uim-helper-client.c Wed Jan 14 21:24:24 2009
@@ -125,7 +125,8 @@
if (uim_helper_check_connection_fd(fd))
goto error;
- uim_read_buf = uim_strdup("");
+ if (!uim_read_buf)
+ uim_read_buf = uim_strdup("");
uim_disconnect_cb = disconnect_cb;
uim_fd = fd;
@@ -153,8 +154,6 @@
if (uim_disconnect_cb)
uim_disconnect_cb();
- free(uim_read_buf);
- uim_read_buf = NULL;
uim_fd = -1;
}