Changeset 4002

Show
Ignore:
Timestamp:
03/30/06 19:19:39 (3 years ago)
Author:
morris
Message:

Protect log message about missing pool with a pool so we don't recurse

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libwired/trunk/libwired/base/wi-pool.c

    r3828 r4002  
    351351 
    352352        if(!pool) { 
    353                 wi_log_warn(WI_STR("Instance %@ autoreleased with no pool in place - just leaking"), instance); 
     353                pool = wi_pool_init(wi_pool_alloc()); 
     354                wi_log_warn(WI_STR("Instance %p %@ autoreleased with no pool in place - just leaking"), instance, instance); 
     355                wi_release(pool); 
    354356 
    355357                return instance;