Ignore:
Timestamp:
Oct 9, 2009, 12:08:24 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
e71890
Parents:
89eff5 (diff), afbb6c0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'new-delete-conversion' of ssh://adamantium/home/metzler/workspace/espack into new-delete-conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/memoryallocator.hpp

    • Property mode changed from 100644 to 100755
    r89eff5 r682229  
    111111 * \param pointer to the allocated memory range to free; may be NULL, this function is a no-op then
    112112 */
    113 template <typename X> void Free(X** buffer)
     113template <typename X> void Free(X** buffer, const char *msg = NULL)
    114114{
    115115  if ((buffer == NULL) || (*buffer == NULL))
    116116    return;
    117117
    118   MemoryUsageObserver::getInstance()->removeMemory(*buffer);
     118  MemoryUsageObserver::getInstance()->removeMemory(*buffer, msg);
    119119  free(*buffer);
    120120  *buffer = NULL;
Note: See TracChangeset for help on using the changeset viewer.