X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faudio_output%2Fjack.c;h=f87d4cbe011ed09390e4c97b8a011f6f949f0106;hb=fa61862474c332412e0341d98f1cf82c067d277a;hp=41e79dd42d5c26e43b9933946de9e2921ff0021f;hpb=13ae40b0efc4f1b1ce205d9a057537047fcab3f4;p=vlc diff --git a/modules/audio_output/jack.c b/modules/audio_output/jack.c index 41e79dd42d..f87d4cbe01 100644 --- a/modules/audio_output/jack.c +++ b/modules/audio_output/jack.c @@ -34,7 +34,7 @@ # include "config.h" #endif -#include +#include #include #include @@ -108,7 +108,6 @@ static int Open( vlc_object_t *p_this ) p_sys = calloc( 1, sizeof( aout_sys_t ) ); if( p_sys == NULL ) { - msg_Err( p_aout, "out of memory" ); status = VLC_ENOMEM; goto error_out; } @@ -143,7 +142,6 @@ static int Open( vlc_object_t *p_this ) sizeof(jack_port_t *) ); if( p_sys->p_jack_ports == NULL ) { - msg_Err( p_aout, "out of memory" ); status = VLC_ENOMEM; goto error_out; } @@ -152,7 +150,6 @@ static int Open( vlc_object_t *p_this ) sizeof(jack_sample_t *) ); if( p_sys->p_jack_buffers == NULL ) { - msg_Err( p_aout, "out of memory" ); status = VLC_ENOMEM; goto error_out; } @@ -190,6 +187,7 @@ static int Open( vlc_object_t *p_this ) const char **pp_in_ports = jack_get_ports( p_sys->p_jack_client, psz_regex, NULL, JackPortIsInput ); + free( psz_regex ); /* Count the number of returned ports */ i_in_ports = 0; while( pp_in_ports && pp_in_ports[i_in_ports] )