]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
timeshift: fix little memory leak (skip/speed msgs)
authorJaroslav Kysela <perex@perex.cz>
Tue, 2 Jun 2015 20:22:30 +0000 (22:22 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 2 Jun 2015 20:22:30 +0000 (22:22 +0200)
src/timeshift.c

index b4acf3a1adfcc77147a7512c4605db4154d3a83e..21ede7c26f7d3ab4a5f79640431ea264280e47f2 100644 (file)
@@ -183,9 +183,11 @@ static void timeshift_input
   if (sm->sm_type == SMT_SKIP) {
     if (ts->state >= TS_LIVE)
       timeshift_write_skip(ts->rd_pipe.wr, sm->sm_data);
+    streaming_msg_free(sm);
   } else if (sm->sm_type == SMT_SPEED) {
     if (ts->state >= TS_LIVE)
       timeshift_write_speed(ts->rd_pipe.wr, sm->sm_code);
+    streaming_msg_free(sm);
   }
 
   else {