[MPlayer-cvslog] r37680 - trunk/stream/stream_radio.c

reimar subversion at mplayerhq.hu
Thu Feb 11 22:48:44 CET 2016


Author: reimar
Date: Thu Feb 11 22:48:44 2016
New Revision: 37680

Log:
stream_radio: Fix memleak.

While stream->priv is not assigned close_s
doesn't really work.

Modified:
   trunk/stream/stream_radio.c

Modified: trunk/stream/stream_radio.c
==============================================================================
--- trunk/stream/stream_radio.c	Thu Feb 11 22:43:12 2016	(r37679)
+++ trunk/stream/stream_radio.c	Thu Feb 11 22:48:44 2016	(r37680)
@@ -1113,6 +1113,7 @@ static int open_s(stream_t *stream,int m
     if (!priv)
         return STREAM_ERROR;
 
+    stream->priv=priv;
 
     priv->radio_param=opts;
 
@@ -1155,7 +1156,6 @@ static int open_s(stream_t *stream,int m
 
     stream->start_pos=0;
     stream->end_pos=0;
-    stream->priv=priv;
     stream->close=close_s;
     stream->fill_buffer=fill_buffer_s;
 


More information about the MPlayer-cvslog mailing list