]> git.sesse.net Git - vlc/blobdiff - modules/stream_out/raop.c
Replace argument = realloc( argument, size ); with realloc_or_free() in modules/...
[vlc] / modules / stream_out / raop.c
index f4cf3c48080cfa992284f6a05cfe5d7457f959b6..70a4e37868cb810f1761ddb792da288dcb828f7a 100644 (file)
@@ -42,6 +42,7 @@
 #include <vlc_gcrypt.h>
 #include <vlc_es.h>
 #include <vlc_http.h>
+#include <vlc_memory.h>
 
 #define RAOP_PORT 5000
 #define RAOP_USER_AGENT "VLC " VERSION
@@ -1299,7 +1300,7 @@ static void SendAudio( sout_stream_t *p_stream, block_t *p_buffer )
             /* Grow in blocks of 4K */
             i_realloc_len = (1 + (i_len / 4096)) * 4096;
 
-            p_sys->p_sendbuf = realloc( p_sys->p_sendbuf, i_realloc_len );
+            p_sys->p_sendbuf = realloc_or_free( p_sys->p_sendbuf, i_realloc_len );
             if ( p_sys->p_sendbuf == NULL )
                 goto error;