Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] VideoPlayer: Delete vob sub demuxer before opening a new one (memory leak). #11731

Merged
merged 1 commit into from
Mar 1, 2017

Conversation

ace20022
Copy link
Member

No description provided.

@ace20022 ace20022 added the Type: Fix non-breaking change which fixes an issue label Feb 23, 2017
@@ -3599,7 +3598,8 @@ bool CVideoPlayer::OpenStream(CCurrentStream& current, int64_t demuxerId, int iS
std::unique_ptr<CDVDDemuxVobsub> demux(new CDVDDemuxVobsub());
if(!demux->Open(st.filename, source, st.filename2))
return false;
m_pSubtitleDemuxer = demux.release();

m_pSubtitleDemuxer = std::move(demux);

This comment was marked as spam.

@ace20022
Copy link
Member Author

@FernetMenta I agree, the last commit should suffice, right?

@ace20022 ace20022 removed the request for review from Paxxi February 24, 2017 10:21
@FernetMenta
Copy link
Contributor

@ace20022 yes, looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Video Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants