Ignore:
Timestamp:
06/15/12 15:56:16 (13 years ago)
Author:
Mathieu Morlighem
Message:

changing xmalloc to xNew and xfree to xDelete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/io/PrintfFunction.cpp

    r12018 r12428  
    2525
    2626                /*allocate buffer for given string size*/
    27                 buffer=(char*)xmalloc(size*sizeof(char));
     27                buffer=xNew<char>(size);
    2828
    2929                /* Try to print in the allocated space. */
     
    4545                 size*=2;  /* twice the old size */
    4646
    47                 xfree((void**)&buffer);
     47                xDelete<char>(buffer);
    4848        }
    4949
     
    5252
    5353        /*Clean up and return*/
    54         xfree((void**)&buffer);
     54        xDelete<char>(buffer);
    5555        return 1;
    5656}
Note: See TracChangeset for help on using the changeset viewer.