]> git.sesse.net Git - vlc/blobdiff - modules/stream_out/description.c
Removes trailing spaces. Removes tabs.
[vlc] / modules / stream_out / description.c
index e01aaaeb8831c3ae0e06c81cfc935884d9b41f84..6e855fea9e9bb17d7c82280266602827937ce3cf 100644 (file)
@@ -24,8 +24,6 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <stdlib.h>
-#include <string.h>
 
 #include <vlc/vlc.h>
 #include <vlc_input.h>
@@ -97,6 +95,7 @@ static void Close( vlc_object_t *p_this )
     /* It can happen only if buggy */
     if( p_sys->p_input )
         vlc_object_release( p_sys->p_input );
+    free( p_sys );
 }
 
 static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
@@ -110,7 +109,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
         p_sys->p_input = vlc_object_find( p_stream, VLC_OBJECT_INPUT, FIND_PARENT );
     if( !p_sys->p_input )
         return NULL;
-    
     p_item = input_GetItem(p_sys->p_input);
 
     p_fmt_copy = malloc(sizeof(es_format_t));