]> git.sesse.net Git - vlc/commitdiff
Cosmetic.
authorChristophe Massiot <massiot@videolan.org>
Mon, 23 Dec 2002 13:49:11 +0000 (13:49 +0000)
committerChristophe Massiot <massiot@videolan.org>
Mon, 23 Dec 2002 13:49:11 +0000 (13:49 +0000)
modules/audio_output/oss.c

index 9c348b83e58c13f70e9c90f3ca6b1c3a4e50d910..460a2dc902863e27e2bed3334f39d8a262bc404c 100644 (file)
@@ -2,7 +2,7 @@
  * oss.c : OSS /dev/dsp module for vlc
  *****************************************************************************
  * Copyright (C) 2000-2002 VideoLAN
- * $Id: oss.c,v 1.39 2002/12/18 14:17:09 sam Exp $
+ * $Id: oss.c,v 1.40 2002/12/23 13:49:11 massiot Exp $
  *
  * Authors: Michel Kaempf <maxx@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -241,13 +241,13 @@ static int Open( vlc_object_t *p_this )
 
     /* Open the sound device */
     p_sys->i_fd = open( psz_device, O_WRONLY );
-    free( psz_device );
     if( p_sys->i_fd < 0 )
     {
         msg_Err( p_aout, "cannot open audio device (%s)", psz_device );
         free( p_sys );
         return VLC_EGENERIC;
     }
+    free( psz_device );
 
     p_aout->output.pf_play = Play;