mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-04 14:48:37 +00:00
fix:decoder内存泄漏
This commit is contained in:
parent
97f7935904
commit
e4b3fb76d9
1 changed files with 2 additions and 4 deletions
|
@ -411,11 +411,9 @@ void Decoder::run()
|
||||||
runQuit:
|
runQuit:
|
||||||
if (m_recorder) {
|
if (m_recorder) {
|
||||||
m_recorder->close();
|
m_recorder->close();
|
||||||
}
|
}
|
||||||
if (decoderBuffer) {
|
|
||||||
av_free(decoderBuffer);
|
|
||||||
}
|
|
||||||
if (avioCtx) {
|
if (avioCtx) {
|
||||||
|
av_free(avioCtx->buffer);
|
||||||
av_freep(&avioCtx);
|
av_freep(&avioCtx);
|
||||||
}
|
}
|
||||||
if (formatCtx && isFormatCtxOpen) {
|
if (formatCtx && isFormatCtxOpen) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue