]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
free http streaming ts buffer when a service stops
authorJohn Törnblom <john.tornblom@gmail.com>
Thu, 18 Oct 2012 16:33:53 +0000 (18:33 +0200)
committerJohn Törnblom <john.tornblom@gmail.com>
Fri, 19 Oct 2012 09:48:22 +0000 (11:48 +0200)
src/service.c

index 4c3e8fdc69096ae52edbabba83ab3d91f73b4daf..c338a98fd2afb19ce265012c0091af0e8dfd3b36 100644 (file)
@@ -153,6 +153,8 @@ service_stop(service_t *t)
   TAILQ_FOREACH(st, &t->s_components, es_link)
     stream_clean(st);
 
+  sbuf_free(&t->s_tsbuf);
+
   t->s_status = SERVICE_IDLE;
 
   pthread_mutex_unlock(&t->s_stream_mutex);