According to Dom Lachowicz <[EMAIL PROTECTED]>: > > free() isn't guaranteed to work with NULL, and I'd rather not try to delete > (or delete[]) anything that is null. If you'd like to give this a try, in delete works with NULL pointers and does nothing. But it is best to check the case in case of a broken library that may generate hard to trackdown bugs. Ref: C++ Programming Language, 3rd Edition Bjarne Stroustrup Page 128 "Applying delete to zero has no effect". Hub
- More memory bugs Mike Nordell
- Re: More memory bugs Jesper Skov
- Re: More memory bugs Joaquín Cuenca Abela
- Re: More memory bugs Mike Nordell
- Re: More memory bugs Jesper Skov
- Re: More memory bugs Dom Lachowicz
- Re: More memory bugs Joaquin Cuenca Abela
- Re: More memory bugs Paul Rohr
- Re: More memory bugs Dom Lachowicz
- Re: More memory bugs Hubert Figuiere
- Re: More memory bugs Mike Nordell
- Re: More memory bugs Joaquín Cuenca Abela