interpolation: fix some warnings

git-svn-id: svn://localhost/ardour2/branches/3.0@5261 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Hans Baier 2009-06-23 14:53:42 +00:00
parent 2641040701
commit d45dfa5cb6
2 changed files with 7 additions and 4 deletions

View file

@ -195,9 +195,12 @@ LibSamplerateInterpolation::add_channel_to (int input_buffer_size, int output_bu
void
LibSamplerateInterpolation::remove_channel_from ()
{
delete data.back ();
SRC_DATA* d = data.back ();
delete d;
data.pop_back ();
delete state.back ();
if (state.back ()) {
src_delete (state.back ());
}
state.pop_back ();
reset_state ();
}