aboutsummaryrefslogtreecommitdiff
path: root/pd/portaudio/pa_common/pa_allocation.c
diff options
context:
space:
mode:
authorMiller Puckette <millerpuckette@users.sourceforge.net>2005-05-30 03:04:19 +0000
committerMiller Puckette <millerpuckette@users.sourceforge.net>2005-05-30 03:04:19 +0000
commit05607e31243e5e85a3801d4513192bb1f2150b14 (patch)
tree0f810a621cb9967e1e53b349410b0d07be0cea13 /pd/portaudio/pa_common/pa_allocation.c
parent47729b52cb85e8a52bf2e6bbf8ee9a810ed331e1 (diff)
Remembered to update all the edited files. Should now be in sync... will
have to test it though. svn path=/trunk/; revision=3092
Diffstat (limited to 'pd/portaudio/pa_common/pa_allocation.c')
-rw-r--r--pd/portaudio/pa_common/pa_allocation.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/pd/portaudio/pa_common/pa_allocation.c b/pd/portaudio/pa_common/pa_allocation.c
index 8bc7c72f..035b4d0b 100644
--- a/pd/portaudio/pa_common/pa_allocation.c
+++ b/pd/portaudio/pa_common/pa_allocation.c
@@ -1,5 +1,5 @@
/*
- * $Id: pa_allocation.c,v 1.1.2.5 2003/09/20 21:04:44 rossbencina Exp $
+ * $Id: pa_allocation.c,v 1.1.2.6 2004/12/20 12:07:51 rossbencina Exp $
* Portable Audio I/O Library allocation group implementation
* memory allocation group for tracking allocation groups
*
@@ -184,12 +184,22 @@ void PaUtil_GroupFreeMemory( PaUtilAllocationGroup* group, void *buffer )
{
if( current->buffer == buffer )
{
- previous->next = current->next;
+ if( previous )
+ {
+ previous->next = current->next;
+ }
+ else
+ {
+ group->allocations = current->next;
+ }
current->buffer = 0;
current->next = group->spareLinks;
group->spareLinks = current;
+
+ break;
}
+
previous = current;
current = current->next;
}