From e6cb9d67eeba357431fac2df663682343c278144 Mon Sep 17 00:00:00 2001 From: Frank Haverland Date: Sun, 1 Jan 2023 19:23:00 +0100 Subject: [PATCH] #1649 unnecessary np check (#1736) --- .../jomjol_flowcontroll/ClassFlowAlignment.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/code/components/jomjol_flowcontroll/ClassFlowAlignment.cpp b/code/components/jomjol_flowcontroll/ClassFlowAlignment.cpp index b3966a0e..e5f013b6 100644 --- a/code/components/jomjol_flowcontroll/ClassFlowAlignment.cpp +++ b/code/components/jomjol_flowcontroll/ClassFlowAlignment.cpp @@ -210,12 +210,10 @@ bool ClassFlowAlignment::doFlow(string time) ImageTMP->SaveToFile(FormatFileName("/sdcard/img_tmp/alg_roi.jpg")); } - if (ImageTMP) // must be deleted to have memory space for loading tflite - { - delete ImageTMP; - ImageTMP = NULL; - } - + // must be deleted to have memory space for loading tflite + delete ImageTMP; + ImageTMP = NULL; + LoadReferenceAlignmentValues(); return true;