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
bde4f0ba
Commit
bde4f0ba
authored
Mar 05, 2009
by
Rémi Denis-Courmont
Browse files
Hack to get the leaked object tree back
parent
f681b223
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libvlc.c
View file @
bde4f0ba
...
...
@@ -1134,6 +1134,12 @@ void libvlc_InternalDestroy( libvlc_int_t *p_libvlc )
vlc_mutex_destroy
(
&
priv
->
config_lock
);
vlc_mutex_destroy
(
&
priv
->
timer_lock
);
#ifndef NDEBUG
/* Hack to dump leaked objects tree */
if
(
vlc_internals
(
p_libvlc
)
->
i_refcount
>
1
)
while
(
vlc_internals
(
p_libvlc
)
->
i_refcount
>
0
)
vlc_object_release
(
p_libvlc
);
#endif
assert
(
vlc_internals
(
p_libvlc
)
->
i_refcount
==
1
);
vlc_object_release
(
p_libvlc
);
}
...
...
src/misc/objects.c
View file @
bde4f0ba
...
...
@@ -572,8 +572,6 @@ void __vlc_object_release( vlc_object_t *p_this )
if
(
b_should_destroy
)
{
/* We have no children */
assert
(
internals
->
i_children
==
0
);
parent
=
p_this
->
p_parent
;
#ifndef NDEBUG
...
...
@@ -607,6 +605,9 @@ void __vlc_object_release( vlc_object_t *p_this )
if
(
parent
)
/* Detach from parent to protect against FIND_CHILDREN */
vlc_object_detach_unlocked
(
p_this
);
/* We have no children */
assert
(
internals
->
i_children
==
0
);
}
libvlc_unlock
(
p_this
->
p_libvlc
);
...
...
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