From e970c46f7b96a91e59c3c8f0d42f4a2acf46b8cb Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sun, 9 May 2021 07:18:36 -0400 Subject: [PATCH] fix memleak. Fixes #3217 --- src/zm_monitor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 63ce15d60..7a1311060 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -2629,6 +2629,7 @@ bool Monitor::Decode() { delete packet->image; packet->image = nullptr; } + av_frame_unref(dest_frame); } // end if have convert_context } // end if need transfer to image } else {