diff --git a/lib/driver/osx.c b/lib/driver/osx.c index 7155942d..080b91d7 100644 --- a/lib/driver/osx.c +++ b/lib/driver/osx.c @@ -1,5 +1,5 @@ /* - $Id: osx.c,v 1.3 2005/04/23 01:16:19 rocky Exp $ + $Id: osx.c,v 1.4 2005/09/30 00:01:09 rocky Exp $ Copyright (C) 2003, 2004, 2005 Rocky Bernstein from vcdimager code: @@ -34,7 +34,7 @@ #include "config.h" #endif -static const char _rcsid[] = "$Id: osx.c,v 1.3 2005/04/23 01:16:19 rocky Exp $"; +static const char _rcsid[] = "$Id: osx.c,v 1.4 2005/09/30 00:01:09 rocky Exp $"; #include #include @@ -1632,8 +1632,10 @@ cdio_get_devices_osx(void) IOObjectRelease( media_iterator ); cdio_add_device_list(&drives, strdup(psz_buf), &num_drives); } - - CFRelease( str_bsd_path ); + else + { + CFRelease( str_bsd_path ); + } IOObjectRelease( next_media ); } while( ( next_media = IOIteratorNext( media_iterator ) ) != 0 );