Commit 8d7e2961 authored by Brice Videau's avatar Brice Videau
Browse files

Call release callbacks in reverse order they were given.

parent e0de77dc
...@@ -36,7 +36,7 @@ ccs_release_object(ccs_object_t object) { ...@@ -36,7 +36,7 @@ ccs_release_object(ccs_object_t object) {
if (obj->callbacks) { if (obj->callbacks) {
_ccs_object_callback_t *cb = NULL; _ccs_object_callback_t *cb = NULL;
while ( (cb = (_ccs_object_callback_t *) while ( (cb = (_ccs_object_callback_t *)
utarray_next(obj->callbacks, cb)) ) { utarray_prev(obj->callbacks, cb)) ) {
cb->callback(object, cb->user_data); cb->callback(object, cb->user_data);
} }
utarray_free(obj->callbacks); utarray_free(obj->callbacks);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment