Skip to content

Commit ab226a7

Browse files
committed
delete reference to formatContext on finalize
1 parent 175d460 commit ab226a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/format.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3869,6 +3869,8 @@ void formatContextFinalizer(napi_env env, void* data, void* hint) {
38693869
if (adaptor != nullptr) // crashes otherwise...
38703870
avformat_free_context(fc);
38713871
}
3872+
3873+
delete fmtRef;
38723874
}
38733875

38743876
napi_value newStream(napi_env env, napi_callback_info info) {

0 commit comments

Comments
 (0)