+ Remove SDP file when bailing out. Patch by Fabrice Ollivier.
* Preamble
*****************************************************************************/
#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
#include <errno.h>
free( p_sys->psz_sdp );
p_sys->psz_sdp = NULL;
}
+ if( p_sys->b_export_sdp_file )
+ {
+#ifdef HAVE_UNISTD_H
+ unlink( p_sys->psz_sdp_file );
+#endif
+ free( p_sys->psz_sdp_file );
+ }
free( p_sys );
}