Commit ba04cf95 authored by Damien Fouilleul's avatar Damien Fouilleul

fixed memleak pointed out by xtophe in previous commit

parent 6bb37546
...@@ -915,7 +915,10 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] ) ...@@ -915,7 +915,10 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] )
char *psz_morecodecs; char *psz_morecodecs;
asprintf(&psz_morecodecs, "%s,dmo,quicktime", psz_codecs); asprintf(&psz_morecodecs, "%s,dmo,quicktime", psz_codecs);
if( psz_morecodecs ) if( psz_morecodecs )
{
config_PutPsz( p_libvlc, "codec", psz_morecodecs); config_PutPsz( p_libvlc, "codec", psz_morecodecs);
free(psz_morecodecs);
}
} }
else else
config_PutPsz( p_libvlc, "codec", "dmo,quicktime"); config_PutPsz( p_libvlc, "codec", "dmo,quicktime");
......
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