Skip to content

Commit

Permalink
fix: free unused jniContext on release (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
anilbeesetti authored Nov 15, 2023
1 parent df5aff0 commit 4c12d94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions media3ext/src/main/cpp/ffvideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ Java_io_github_anilbeesetti_nextlib_media3ext_ffdecoder_FfmpegVideoDecoder_ffmpe
if (context) {
sws_freeContext(jniContext->swsContext);
releaseContext(context);
delete jniContext;
}
}

Expand Down

0 comments on commit 4c12d94

Please sign in to comment.