diff options
author | Dmitriy Paliy <dmitriy.paliy@nokia.com> | 2010-11-11 22:46:19 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-11-11 23:21:05 +0200 |
commit | 19be2e3a9b704ecf176dd4f033f798991cb01959 (patch) | |
tree | 973b58850ea0dcd4e88f7313c0280b01d687fbb9 /plugins/irmc.c | |
parent | 3ba8128aeaadd85ff39d366c565b94b08633270c (diff) | |
download | obexd-19be2e3a9b704ecf176dd4f033f798991cb01959.tar.gz |
Use g_string_free instead of string_free in IRMC
g_string_free instead of string_free shall be used in IRMC plugin.
string_free is a callback function specific to filesystem plugin
only and used by OBEX drivers to close an OBEX object.
Diffstat (limited to 'plugins/irmc.c')
-rw-r--r-- | plugins/irmc.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/irmc.c b/plugins/irmc.c index 28c5e50..f7ad33b 100644 --- a/plugins/irmc.c +++ b/plugins/irmc.c @@ -254,10 +254,8 @@ static void irmc_disconnect(struct obex_session *os, void *user_data) g_free(irmc->params); } - if (irmc->buffer) { - string_free(irmc->buffer); - irmc->buffer = NULL; - } + if (irmc->buffer) + g_string_free(irmc->buffer, TRUE); g_free(irmc); } @@ -355,7 +353,7 @@ static void *irmc_open_pb(const char *name, struct irmc_session *irmc, irmc->buffer = mybuf; else { irmc->buffer = g_string_append(irmc->buffer, mybuf->str); - string_free(mybuf); + g_string_free(mybuf, TRUE); } return irmc; @@ -433,7 +431,7 @@ static int irmc_close(void *object) DBG(""); if (irmc->buffer) { - string_free(irmc->buffer); + g_string_free(irmc->buffer, TRUE); irmc->buffer = NULL; } |