summaryrefslogtreecommitdiff
path: root/telepathy-logger
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-02-25 08:15:50 -0800
committerTravis Reitter <treitter@gmail.com>2010-02-25 08:16:58 -0800
commit9c5151d2622f1ef04ce0d7a59c70cc355df3af28 (patch)
tree534f813e571012003a03fd27b646cb11197744a9 /telepathy-logger
parent11e8fd5bfb68347baf7f809089c78ade0eb7f79d (diff)
downloadtelepathy-logger-9c5151d2622f1ef04ce0d7a59c70cc355df3af28.tar.gz
Fix the signature of link_free() and use it more consistently.
Diffstat (limited to 'telepathy-logger')
-rw-r--r--telepathy-logger/action-chain.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/telepathy-logger/action-chain.c b/telepathy-logger/action-chain.c
index e2dbbbb..f29a9c5 100644
--- a/telepathy-logger/action-chain.c
+++ b/telepathy-logger/action-chain.c
@@ -44,17 +44,16 @@ tpl_actionchain_new (GObject *obj,
static void
-link_free (gpointer data,
- gpointer user_data)
+link_free (TplActionLink *link)
{
- g_slice_free (TplActionLink, data);
+ g_slice_free (TplActionLink, link);
}
void
tpl_actionchain_free (TplActionChain *self)
{
- g_queue_foreach (self->chain, link_free, NULL);
+ g_queue_foreach (self->chain, (GFunc) link_free, NULL);
g_queue_free (self->chain);
/* TODO free self->simple, I canont understand how */
g_slice_free (TplActionChain, self);
@@ -115,7 +114,7 @@ tpl_actionchain_continue (TplActionChain *self)
TplActionLink *link = g_queue_pop_head (self->chain);
link->action (self, link->user_data);
- g_slice_free (TplActionLink, link);
+ link_free (link);
}
}