summaryrefslogtreecommitdiff
path: root/src/input/input_rtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/input_rtp.c')
-rw-r--r--src/input/input_rtp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/input/input_rtp.c b/src/input/input_rtp.c
index 0501ba3bb..114d35e61 100644
--- a/src/input/input_rtp.c
+++ b/src/input/input_rtp.c
@@ -476,15 +476,14 @@ static int rtp_plugin_get_optional_data (input_plugin_t *this_gen,
return INPUT_OPTIONAL_UNSUPPORTED;
}
-static int rtp_plugin_dispose (input_plugin_t *this_gen ) {
+static void rtp_plugin_dispose (input_plugin_t *this_gen ) {
rtp_input_plugin_t *this = (rtp_input_plugin_t *) this_gen;
input_buffer_t *buf;
if (this->fifo_tail.next) {
while (this->fifo_tail.next != &this->fifo_tail) {
- buf = this->fifo_tail.next->buf;
+ buf = this->fifo_tail.next;
this->fifo_tail.next = this->fifo_tail.next->next;
-
free (buf->buf);
free (buf);
}