diff options
Diffstat (limited to 'lib/Exceptions.cc')
-rw-r--r-- | lib/Exceptions.cc | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/lib/Exceptions.cc b/lib/Exceptions.cc index 0d09870..caa0257 100644 --- a/lib/Exceptions.cc +++ b/lib/Exceptions.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Exceptions.cc,v 1.30 2003-12-04 04:09:02 pixel Exp $ */ +/* $Id: Exceptions.cc,v 1.31 2003-12-22 01:57:02 pixel Exp $ */ #include <malloc.h> #include <string.h> @@ -142,18 +142,6 @@ void * xrealloc(void * ptr, size_t s) { } void xfree(unsigned char *& p) { - char * t = (char *) p; - xfree(t); - p = 0; -} - -void xfree(void *& p) { - char * t = (char *) p; - xfree(t); - p = 0; -} - -void xfree(char *& p) { #ifdef DEBUG // Base::printm(M_BARE, String(_("Freeing pointer at %p\n")), p); #endif @@ -237,19 +225,7 @@ void Base::operator delete(void * p) { #ifdef DEBUG printm(M_BARE, _("Operator delete(p) called. Freeing memory.\n")); #endif - xfree(p); -} - -void Base::free(void *& p) { - xfree(p); -} - -void Base::free(char *& p) { - xfree(p); -} - -void Base::free(unsigned char *& p) { - xfree(p); + free(p); } int Base::pipe(int * p, int flag) { |