Ignore:
Timestamp:
Nov 2, 2015, 12:18:30 AM (9 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:
43b7c6d
Parents:
9ee1ee9
Message:

src/io/{sink,source,utils}_apple_audio.c: fix memory leak calling CFRelease (closes #26, closes #27, and closes #28)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_apple_audio.c

    r9ee1ee9 r2da7526  
    5252extern int createAubioBufferList(AudioBufferList *bufferList, int channels, int max_source_samples);
    5353extern void freeAudioBufferList(AudioBufferList *bufferList);
    54 extern CFURLRef getURLFromPath(const char * path);
     54extern CFURLRef createURLFromPath(const char * path);
    5555char_t *getPrintableOSStatusError(char_t *str, OSStatus error);
    5656
     
    9999
    100100  // open the resource url
    101   CFURLRef fileURL = getURLFromPath(path);
     101  CFURLRef fileURL = createURLFromPath(path);
    102102  err = ExtAudioFileOpenURL(fileURL, &s->audioFile);
     103  CFRelease(fileURL);
    103104  if (err == -43) {
    104105    AUBIO_ERR("source_apple_audio: Failed opening %s, "
Note: See TracChangeset for help on using the changeset viewer.