@scrypted/libav 1.0.147 → 1.0.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/libav",
3
- "version": "1.0.147",
3
+ "version": "1.0.148",
4
4
  "dependencies": {
5
5
  "detect-libc": "^2.0.3",
6
6
  "follow-redirects": "^1.15.9",
@@ -525,6 +525,9 @@ Napi::Value AVFormatContextObject::Close(const Napi::CallbackInfo &info)
525
525
  if (is_input) {
526
526
  avformat_close_input(&fmt_ctx_);
527
527
  }
528
+ if (callbackRef) {
529
+ callbackRef.Release();
530
+ }
528
531
  avformat_free_context(fmt_ctx_);
529
532
  fmt_ctx_ = nullptr;
530
533
  }