# HG changeset patch # User John W. Eaton # Date 1290217458 18000 # Node ID 475e90eb4ff12fdd2001fbc9fcb073eede3710e5 # Parent f83e17ec270dcd7adbf3896fd77b1a7a7b92098f mex::free: don't warn about skipping memory not allocated by mx{M,C,Re}alloc diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-11-19 John W. Eaton + + * mex.cc (mex::free): Don't warn about skipping memory not + allocated by mxMalloc, mxCalloc, or mxRealloc. + 2010-11-18 Daisuke TAKAGO * gl-render.cc (opengl_renderer::draw_line): diff --git a/src/mex.cc b/src/mex.cc --- a/src/mex.cc +++ b/src/mex.cc @@ -2216,8 +2216,10 @@ if (p != foreign_memlist.end ()) foreign_memlist.erase (p); +#ifdef DEBUG else warning ("mxFree: skipping memory not allocated by mxMalloc, mxCalloc, or mxRealloc"); +#endif } } }