Commit 10523bb7 authored by Jean-Paul Saman's avatar Jean-Paul Saman

src/stream_output/stream_output.c: destroy mutex on error.

Do not leak mutex in sout_NewInstance() on error.
parent bc971c81
...@@ -128,6 +128,7 @@ sout_instance_t *sout_NewInstance( vlc_object_t *p_parent, const char *psz_dest ...@@ -128,6 +128,7 @@ sout_instance_t *sout_NewInstance( vlc_object_t *p_parent, const char *psz_dest
FREENULL( p_sout->psz_sout ); FREENULL( p_sout->psz_sout );
vlc_mutex_destroy( &p_sout->lock );
vlc_object_release( p_sout ); vlc_object_release( p_sout );
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment