Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32659
Modified Files: Tag: desiredata d_soundfile.c Log Message: freebytes -> free
Index: d_soundfile.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/d_soundfile.c,v retrieving revision 1.4.4.11.2.10.2.4 retrieving revision 1.4.4.11.2.10.2.5 diff -C2 -d -r1.4.4.11.2.10.2.4 -r1.4.4.11.2.10.2.5 *** d_soundfile.c 20 Dec 2006 07:50:25 -0000 1.4.4.11.2.10.2.4 --- d_soundfile.c 9 Jan 2007 16:57:47 -0000 1.4.4.11.2.10.2.5 *************** *** 25,28 **** --- 25,29 ---- #include <string.h> #include <errno.h> + #include <stdlib.h>
#include "m_pd.h" *************** *** 798,807 **** pthread_mutex_lock(&(soundfiler_queue->mutex)); pthread_mutex_lock(&(me->mutex)); ! /* freeing the argument vector */ ! freebytes(me->argv, sizeof(t_atom) * me->argc); /* the process struct */ next=me->next; soundfiler_queue->begin=next; ! freebytes(me, sizeof(t_sfprocess)); } soundfiler_queue->end=NULL; --- 799,807 ---- pthread_mutex_lock(&(soundfiler_queue->mutex)); pthread_mutex_lock(&(me->mutex)); ! free(me->argv); /* the process struct */ next=me->next; soundfiler_queue->begin=next; ! free(me); } soundfiler_queue->end=NULL; *************** *** 1233,1237 **** nvec = getalignedbytes(n * elemsize); memcpy (nvec, x->x_array.a_vec, was * elemsize); - /* LATER should check t_resizebytes result */ memset(nvec + was*elemsize, 0, (n - was) * elemsize); } --- 1233,1236 ---- *************** *** 2028,2032 **** pthread_cond_destroy(&x->x_answercondition); pthread_mutex_destroy(&x->x_mutex); ! freebytes(x->x_buf, x->x_bufsize); clock_free(x->x_clock); } --- 2027,2031 ---- pthread_cond_destroy(&x->x_answercondition); pthread_mutex_destroy(&x->x_mutex); ! free(x->x_buf); clock_free(x->x_clock); } *************** *** 2340,2344 **** pthread_cond_destroy(&x->x_answercondition); pthread_mutex_destroy(&x->x_mutex); ! freebytes(x->x_buf, x->x_bufsize); }
--- 2339,2343 ---- pthread_cond_destroy(&x->x_answercondition); pthread_mutex_destroy(&x->x_mutex); ! free(x->x_buf); }