Fix bug in DataSource.

release-1.5.4.branch
Vreixo Formoso 15 years ago
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…
Cancel
Save