Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
f02c23a5
Commit
f02c23a5
authored
May 28, 2018
by
Philipp Schafft
🦁
Browse files
Fix: Corrected reference counters
parent
5d815f22
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
f02c23a5
...
...
@@ -63,6 +63,9 @@ int module_container_add_module(module_container_t *self, mo
if
(
!
self
)
return
-
1
;
if
(
refobject_ref
(
module
)
!=
0
)
return
-
1
;
thread_mutex_lock
(
&
(
self
->
lock
));
avl_insert
(
self
->
module
,
module
);
thread_mutex_unlock
(
&
(
self
->
lock
));
...
...
@@ -105,6 +108,7 @@ module_t * module_container_get_module(module_container_t *self, co
}
refobject_unref
(
search
);
refobject_ref
(
ret
);
return
ret
;
}
...
...
Write
Preview
Supports
Markdown
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