Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
451
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
496001e6
Commit
496001e6
authored
6 years ago
by
Steve Lhomme
Browse files
Options
Downloads
Patches
Plain Diff
libvlc: add leak debugging code
disabled by default
parent
92d04ffd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/libvlc.c
+10
-0
10 additions, 0 deletions
src/libvlc.c
with
10 additions
and
0 deletions
src/libvlc.c
+
10
−
0
View file @
496001e6
...
...
@@ -450,6 +450,16 @@ void libvlc_InternalDestroy( libvlc_int_t *p_libvlc )
vlc_ExitDestroy
(
&
priv
->
exit
);
#if 0
{
vlc_object_internals_t *internal = vlc_internals(p_libvlc);
if (atomic_load(&internal->refs) != 1)
{
fprintf(stderr, "=== vlc_object LEAKS detected ===\n");
DumpStructureLocked(VLC_OBJECT(p_libvlc), stderr, 0);
}
}
#endif
assert
(
atomic_load
(
&
(
vlc_internals
(
p_libvlc
)
->
refs
))
==
1
);
vlc_object_delete
(
p_libvlc
);
}
...
...
This diff is collapsed.
Click to expand it.
Steve Lhomme
@robUx4
mentioned in commit
6a4f3702
·
5 years ago
mentioned in commit
6a4f3702
mentioned in commit 6a4f370211edcea688ad62075de888ffe6e9fa29
Toggle commit list
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment