Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
e002f487
Commit
e002f487
authored
Mar 31, 2008
by
Pierre d'Herbemont
Browse files
libvlc: Destroy libvlc's vlm instance before the stats destruction to avoid input crashes.
parent
4c905528
Changes
1
Show whitespace changes
Inline
Side-by-side
src/libvlc-common.c
View file @
e002f487
...
...
@@ -970,6 +970,12 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
aout_Delete
(
p_aout
);
}
/* Destroy VLM if created in libvlc_InternalInit */
if
(
p_libvlc
->
p_vlm
)
{
vlm_Delete
(
p_libvlc
->
p_vlm
);
}
/* Free interaction */
msg_Dbg
(
p_libvlc
,
"removing interaction"
);
vlc_object_release
(
p_libvlc
->
p_interaction
);
...
...
@@ -998,12 +1004,6 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
vlc_mutex_destroy
(
&
p_libvlc
->
p_stats
->
lock
);
FREENULL
(
p_libvlc
->
p_stats
);
/* Destroy VLM if created in libvlc_InternalInit */
if
(
p_libvlc
->
p_vlm
)
{
vlm_Delete
(
p_libvlc
->
p_vlm
);
}
return
VLC_SUCCESS
;
}
...
...
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