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
VideoLAN
medialibrary
Commits
9d8fa827
Commit
9d8fa827
authored
Oct 04, 2015
by
Hugo Beauzée-Luyssen
Browse files
Fix potential crash on exit
parent
1bf69135
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/MediaLibrary.cpp
View file @
9d8fa827
...
...
@@ -53,6 +53,12 @@ MediaLibrary::MediaLibrary()
MediaLibrary
::~
MediaLibrary
()
{
// The log callback isn't shared by all VLC::Instance's, yet since
// they all share a single libvlc_instance_t, any VLC::Instance still alive
// with a log callback set will try to invoke it.
// We manually call logUnset to ensure that the callback that is about to be deleted will
// not be called anymore.
m_vlcInstance
.
logUnset
();
File
::
clear
();
Folder
::
clear
();
Label
::
clear
();
...
...
Write
Preview
Supports
Markdown
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