Changeset 4395 for pjproject/branches/1.x/pjlib/src/pj/pool_caching.c
- Timestamp:
- Feb 27, 2013 12:07:30 PM (12 years ago)
- Location:
- pjproject/branches/1.x
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x
- Property svn:mergeinfo changed
/pjproject/trunk merged: 4298
- Property svn:mergeinfo changed
-
pjproject/branches/1.x/pjlib/src/pj/pool_caching.c
r3553 r4395 179 179 180 180 /* Update pool manager's free capacity. */ 181 cp->capacity -= pj_pool_get_capacity(pool); 181 if (cp->capacity > pj_pool_get_capacity(pool)) { 182 cp->capacity -= pj_pool_get_capacity(pool); 183 } else { 184 cp->capacity = 0; 185 } 182 186 183 187 PJ_LOG(6, (pool->obj_name, "pool reused, size=%u", pool->capacity)); … … 200 204 { 201 205 pj_caching_pool *cp = (pj_caching_pool*)pf; 202 unsignedpool_capacity;206 pj_size_t pool_capacity; 203 207 unsigned i; 204 208
Note: See TracChangeset
for help on using the changeset viewer.