Ignore:
Timestamp:
Sep 3, 2019 2:10:45 AM (5 years ago)
Author:
ming
Message:

Fixed #2225: Timer heap refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/pool_i.h

    r5990 r6058  
    8989PJ_IDEF(void) pj_pool_release( pj_pool_t *pool ) 
    9090{ 
     91#if PJ_POOL_RELEASE_WIPE_DATA 
     92    pj_pool_block *b; 
     93 
     94    b = pool->block_list.next; 
     95    while (b != &pool->block_list) { 
     96        volatile unsigned char *p = b->buf; 
     97        while (p < b->end) *p++ = 0; 
     98        b = b->next; 
     99    } 
     100#endif 
     101 
    91102    if (pool->factory->release_pool) 
    92103        (*pool->factory->release_pool)(pool->factory, pool); 
Note: See TracChangeset for help on using the changeset viewer.