]> git.sesse.net Git - vlc/commitdiff
Fix crash
authorClément Stenac <zorglub@videolan.org>
Fri, 26 Nov 2004 21:50:51 +0000 (21:50 +0000)
committerClément Stenac <zorglub@videolan.org>
Fri, 26 Nov 2004 21:50:51 +0000 (21:50 +0000)
modules/access/cdda/access.c

index 363449eb520c1919bd4f08d971ecc1e937f9eb37..45cc329aa37791bd0522886df76694dc4051a847 100644 (file)
@@ -449,7 +449,10 @@ int E_(CDDAOpen)( vlc_object_t *p_this )
     free( p_cdda );
  error2:
     free( psz_source );
-    vlc_object_release( p_cdda->p_input );
+    if( p_cdda && p_cdda->p_input )
+    {
+        vlc_object_release( p_cdda->p_input );
+    }
     return i_rc;
 
 }