From 558abc6b8a509d327888e666e4f5ea7ce1138feb Mon Sep 17 00:00:00 2001 From: quyan Date: Thu, 1 Aug 2019 01:34:45 +0800 Subject: [PATCH] [fix] Solve the memory leak problem. Solve the serious memory leak problem caused by unreleased PNET while Detect() is called many times. --- src/libmtcnn/mxnet_mtcnn.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libmtcnn/mxnet_mtcnn.cpp b/src/libmtcnn/mxnet_mtcnn.cpp index c2494dd..9a1353c 100644 --- a/src/libmtcnn/mxnet_mtcnn.cpp +++ b/src/libmtcnn/mxnet_mtcnn.cpp @@ -324,6 +324,8 @@ void MxNetMtcnn::RunPNet(const cv::Mat& img, scale_window& win, std::vector