Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
bde4f0ba
Commit
bde4f0ba
authored
Mar 05, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hack to get the leaked object tree back
parent
f681b223
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
src/libvlc.c
src/libvlc.c
+6
-0
src/misc/objects.c
src/misc/objects.c
+3
-2
No files found.
src/libvlc.c
View file @
bde4f0ba
...
@@ -1134,6 +1134,12 @@ void libvlc_InternalDestroy( libvlc_int_t *p_libvlc )
...
@@ -1134,6 +1134,12 @@ void libvlc_InternalDestroy( libvlc_int_t *p_libvlc )
vlc_mutex_destroy
(
&
priv
->
config_lock
);
vlc_mutex_destroy
(
&
priv
->
config_lock
);
vlc_mutex_destroy
(
&
priv
->
timer_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
);
assert
(
vlc_internals
(
p_libvlc
)
->
i_refcount
==
1
);
vlc_object_release
(
p_libvlc
);
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 )
...
@@ -572,8 +572,6 @@ void __vlc_object_release( vlc_object_t *p_this )
if
(
b_should_destroy
)
if
(
b_should_destroy
)
{
{
/* We have no children */
assert
(
internals
->
i_children
==
0
);
parent
=
p_this
->
p_parent
;
parent
=
p_this
->
p_parent
;
#ifndef NDEBUG
#ifndef NDEBUG
...
@@ -607,6 +605,9 @@ void __vlc_object_release( vlc_object_t *p_this )
...
@@ -607,6 +605,9 @@ void __vlc_object_release( vlc_object_t *p_this )
if
(
parent
)
if
(
parent
)
/* Detach from parent to protect against FIND_CHILDREN */
/* Detach from parent to protect against FIND_CHILDREN */
vlc_object_detach_unlocked
(
p_this
);
vlc_object_detach_unlocked
(
p_this
);
/* We have no children */
assert
(
internals
->
i_children
==
0
);
}
}
libvlc_unlock
(
p_this
->
p_libvlc
);
libvlc_unlock
(
p_this
->
p_libvlc
);
...
...
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