[PD-cvs] pd/src m_pd.h,1.4.4.11.2.33.2.67,1.4.4.11.2.33.2.68
Mathieu Bouchard
matju at users.sourceforge.net
Wed Aug 1 09:57:54 CEST 2007
Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17010
Modified Files:
Tag: desiredata
m_pd.h
Log Message:
fix memory leak in t_hash
Index: m_pd.h
===================================================================
RCS file: /cvsroot/pure-data/pd/src/m_pd.h,v
retrieving revision 1.4.4.11.2.33.2.67
retrieving revision 1.4.4.11.2.33.2.68
diff -C2 -d -r1.4.4.11.2.33.2.67 -r1.4.4.11.2.33.2.68
*** m_pd.h 31 Jul 2007 01:20:29 -0000 1.4.4.11.2.33.2.67
--- m_pd.h 1 Aug 2007 07:57:52 -0000 1.4.4.11.2.33.2.68
***************
*** 31,35 ****
for (long j=0; j<capa; j++) tab[j]=0;
}
! ~t_hash() {delete[] tab;}
size_t size() {return n;}
V get(K k) {
--- 31,38 ----
for (long j=0; j<capa; j++) tab[j]=0;
}
! ~t_hash() {
! for (long j=0; j<capa; j++) while (tab[j]) del(tab[j]->k);
! delete[] tab;
! }
size_t size() {return n;}
V get(K k) {
***************
*** 82,88 ****
#endif
! #define PD_MAJOR_VERSION 0
! #define PD_MINOR_VERSION 40
! #define PD_DEVEL_VERSION 1 /* T.Grill - mark for devel branch */
#define PD_TEST_VERSION ""
--- 85,91 ----
#endif
! #define PD_MAJOR_VERSION 1
! #define PD_MINOR_VERSION 0
! #define PD_DEVEL_VERSION 0
#define PD_TEST_VERSION ""
***************
*** 405,409 ****
EXTERN t_symbol *atom_getsymbol(t_atom *a); /* this call causes a t_symbol to become æternal */
EXTERN const char *atom_getstring(t_atom *a); /* the return value should be used only immediately */
- EXTERN t_symbol *atom_gensym( t_atom *a);
EXTERN t_float atom_getfloatarg( int which, int argc, t_atom *argv);
EXTERN t_int atom_getintarg( int which, int argc, t_atom *argv);
--- 408,411 ----
***************
*** 411,414 ****
--- 413,418 ----
EXTERN const char *atom_getstringarg(int which, int argc, t_atom *argv); /* see above */
+ EXTERN t_symbol *atom_gensym( t_atom *a);
+
/* this function should produce a literal, whereas getstring gives the exact string */
EXTERN void atom_string(t_atom *a, char *buf, unsigned int bufsize);
More information about the Pd-cvs
mailing list