diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index fe771160c..d7a721f06 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -747,6 +747,7 @@ VideoStore::~VideoStore() { avformat_free_context(oc); delete[] next_dts; next_dts = nullptr; + delete opkt; } // VideoStore::~VideoStore() bool VideoStore::setup_resampler() {