Changeset 420962e for src/io


Ignore:
Timestamp:
Jul 14, 2012, 9:14:27 PM (12 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
32df658
Parents:
2c3d4ca
Message:

src/io/source_sndfile.c: avoid segfault when deleting NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_sndfile.c

    r2c3d4ca r420962e  
    118118
    119119void del_aubio_source_sndfile(aubio_source_sndfile_t * s){
     120  if (!s) return;
    120121  if (sf_close(s->handle)) {
    121122    AUBIO_ERR("Error closing file %s: %s", s->path, sf_strerror (NULL));
Note: See TracChangeset for help on using the changeset viewer.