Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Brice Videau
CCS
Commits
8d7e2961
Commit
8d7e2961
authored
Dec 04, 2020
by
Brice Videau
Browse files
Call release callbacks in reverse order they were given.
parent
e0de77dc
Changes
1
Show whitespace changes
Inline
Side-by-side
src/cconfigspace.c
View file @
8d7e2961
...
...
@@ -36,7 +36,7 @@ ccs_release_object(ccs_object_t object) {
if
(
obj
->
callbacks
)
{
_ccs_object_callback_t
*
cb
=
NULL
;
while
(
(
cb
=
(
_ccs_object_callback_t
*
)
utarray_
next
(
obj
->
callbacks
,
cb
))
)
{
utarray_
prev
(
obj
->
callbacks
,
cb
))
)
{
cb
->
callback
(
object
,
cb
->
user_data
);
}
utarray_free
(
obj
->
callbacks
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment