mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-09-17 15:02:36 +00:00
fix:decoderBuffer内存泄漏
This commit is contained in:
parent
39eea20b6c
commit
eded0d1f78
1 changed files with 4 additions and 1 deletions
|
@ -382,6 +382,9 @@ runQuit:
|
||||||
if (m_recorder) {
|
if (m_recorder) {
|
||||||
m_recorder->close();
|
m_recorder->close();
|
||||||
}
|
}
|
||||||
|
if (decoderBuffer) {
|
||||||
|
av_free(decoderBuffer);
|
||||||
|
}
|
||||||
if (avioCtx) {
|
if (avioCtx) {
|
||||||
av_freep(&avioCtx);
|
av_freep(&avioCtx);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue