Changeset 6076:b81c397aee90 in roaraudio


Ignore:
Timestamp:
05/02/15 20:16:41 (4 years ago)
Author:
phi
Branch:
default
Message:

ref and unref objects before and after calls top callbacks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/kstore.c

    r6075 r6076  
    253253 
    254254 for (i = 0; i < store->len; i++) { 
     255  if ( store->ref != NULL ) 
     256   store->ref(store->kv[i].value); 
    255257  func(store->kv[i].value, userdata); 
     258  if ( store->unref != NULL ) 
     259   store->unref(store->kv[i].value); 
    256260 } 
    257261 
Note: See TracChangeset for help on using the changeset viewer.