Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
e5b3d194
Commit
e5b3d194
authored
May 16, 2008
by
Rafaël Carré
Browse files
Detach the children at object destruction
parent
c85f8681
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/misc/objects.c
View file @
e5b3d194
...
...
@@ -872,7 +872,7 @@ void __vlc_object_release( vlc_object_t *p_this )
vlc_object_detach_unlocked
(
p_this
);
/* Detach from children to protect against FIND_PARENT */
for
(
int
i
=
0
;
i
<
p_this
->
i_children
;
i
++
)
p_this
->
pp_children
[
i
]
->
p_parent
=
NULL
;
vlc_object_detach_unlocked
(
p_this
->
pp_children
[
i
]
)
;
vlc_mutex_unlock
(
&
structure_lock
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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