Fix bug in DataSource.
This commit is contained in:
parent
5bf798d550
commit
42cd599d2d
@ -127,7 +127,7 @@ void ds_free_data(IsoDataSource *src)
|
||||
data = (struct file_data_src*)src->data;
|
||||
|
||||
/* close the file if needed */
|
||||
if (data->fd != 1) {
|
||||
if (data->fd != -1) {
|
||||
close(data->fd);
|
||||
}
|
||||
free(data->path);
|
||||
|
Loading…
Reference in New Issue
Block a user