[vlc-devel] commit: Fix very minor memory leak when using OSS for audio. ( Richard Hosking )

Rafaël Carré funman at videolan.org
Sat Mar 15 17:38:25 CET 2008


On Sat, 2008-03-15 at 15:53 +0100, git version control wrote:
> vlc | branch: master | Richard Hosking <richard at hovis.net> | Sat Mar
> 15 14:50:27 2008 +0000| [7d3cc85d1bc8a3d7aea4f5486148826304b0aa8b]
> 
> Fix very minor memory leak when using OSS for audio.
> 
> >
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7d3cc85d1bc8a3d7aea4f5486148826304b0aa8b
> ---


> -    if( !psz_device ) psz_device = strdup( OSS_DEFAULT ); /* FIXME leak */
> +    char* psz_oss_device_name = strdup( ( !p_sys->psz_adev ) ? OSS_DEFAULT : p_sys->psz_adev );

char *psz_oss_device_name = strdup( p_sys->psz_adev ? p_sys->psz_adev :
OSS_DEFAULT );

please

-- 
Rafaël Carré <funman at videolan.org>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080315/08e480e1/attachment.sig>


More information about the vlc-devel mailing list