#1649 unnecessary np check (#1736)

This commit is contained in:
Frank Haverland
2023-01-01 19:23:00 +01:00
committed by GitHub
parent 809823a9b0
commit e6cb9d67ee

View File

@@ -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;