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 {