Changeset 9e6695d for python/ext


Ignore:
Timestamp:
Mar 8, 2013, 3:52:01 AM (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:
1ee4033
Parents:
90a8f2f
Message:

python/: use Py_RETURN_NONE, fixing a memory bug triggered after opening many sinks

Location:
python/ext
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • python/ext/aubiomodule.c

    r90a8f2f r9e6695d  
    165165
    166166  // since this function does not return, we could return None
    167   //return Py_None;
     167  //Py_RETURN_NONE;
    168168  // however it is convenient to return the modified vector
    169169  return (PyObject *) PyAubio_CFvecToArray(vec);
  • python/ext/py-filter.c

    r90a8f2f r9e6695d  
    100100    return NULL;
    101101  }
    102   return Py_None;
     102  Py_RETURN_NONE;
    103103}
    104104
     
    118118    return NULL;
    119119  }
    120   return Py_None;
     120  Py_RETURN_NONE;
    121121}
    122122
     
    136136    return NULL;
    137137  }
    138   return Py_None;
     138  Py_RETURN_NONE;
    139139}
    140140
  • python/ext/py-filterbank.c

    r90a8f2f r9e6695d  
    110110    return NULL;
    111111  }
    112   return Py_None;
     112  Py_RETURN_NONE;
    113113}
    114114
     
    129129    return NULL;
    130130  }
    131   return Py_None;
     131  Py_RETURN_NONE;
    132132}
    133133
     
    159159    return NULL;
    160160  }
    161   return Py_None;
     161  Py_RETURN_NONE;
    162162}
    163163
Note: See TracChangeset for help on using the changeset viewer.