Changeset 12500


Ignore:
Timestamp:
06/21/12 14:17:01 (13 years ago)
Author:
Mathieu Morlighem
Message:

Final xmalloc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/shared/Exceptions/exprintf.cpp

    r12461 r12500  
    2525
    2626                /*allocate buffer for given string size*/
    27                 //buffer=xNew<char>(size);
    28                 buffer=(char*)xmalloc(size*sizeof(char));
     27                buffer=xNew<char>(size);
    2928
    3029                /* Try to print in the allocated space. */
     
    4645                 size*=2;  /* twice the old size */
    4746
    48                 //xDelete<char>(buffer);
    49                 xfree((void**)&buffer);
     47                xDelete<char>(buffer);
    5048        }
    5149
Note: See TracChangeset for help on using the changeset viewer.