-
Notifications
You must be signed in to change notification settings - Fork 60
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
Memory leak #477
Comments
thanks, looks Could you please add MR and will be merged you as author? |
Hi! Sorry for the long time answer - a lot of work and little time :) Yes, after this correction the asan says that everything is fine. There are still leaks, but they are minor and, in my opinion, not worth attention. Thank you for your work and project. |
Hello,
QAVSubtitleFrame::QAVSubtitleFrame()
: QAVStreamFrame(*new QAVSubtitleFramePrivate)
{
Q_D(QAVSubtitleFrame);
d->subtitle.reset(new AVSubtitle, subtitle_free);
memset(d->subtitle.data(), 0, sizeof(*d->subtitle.data()));
}
Asan tell me - new AVSubtitle - not free
Propousal:
static void subtitle_free(AVSubtitle *subtitle)
{
avsubtitle_free(subtitle);
delete subtitle;
}
Leak very fast, ~8Gb around 2 minutes
Thanks
The text was updated successfully, but these errors were encountered: