From 5bba2df526ba47b46da380074cb66de266d7fa80 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 24 Aug 2011 18:20:53 +0200 Subject: input/soup: free all resources in method close() --- src/input/soup_input_plugin.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/input/soup_input_plugin.c b/src/input/soup_input_plugin.c index 7ceabbc62..b732f2e15 100644 --- a/src/input/soup_input_plugin.c +++ b/src/input/soup_input_plugin.c @@ -251,6 +251,16 @@ input_soup_close(struct input_stream *is) } g_mutex_unlock(s->mutex); + g_mutex_free(s->mutex); + g_cond_free(s->cond); + + SoupBuffer *buffer; + while ((buffer = g_queue_pop_head(s->buffers)) != NULL) + soup_buffer_free(buffer); + g_queue_free(s->buffers); + + input_stream_deinit(&s->base); + g_free(s); } static int -- cgit v1.2.3