Implement util_free_var function

This commit is contained in:
MrDave
2021-03-22 20:34:36 -06:00
committed by Mr-Dave
parent f10484f174
commit e0f2011d69
14 changed files with 98 additions and 205 deletions

View File

@@ -385,9 +385,7 @@ static void algsec_params_deinit(ctx_algsec_model &algmdl)
{
if (algmdl.algsec_params != NULL){
util_parms_free(algmdl.algsec_params);
free(algmdl.algsec_params);
algmdl.algsec_params = NULL;
util_free_var(algmdl.algsec_params);
}
}
@@ -560,8 +558,7 @@ void algsec_deinit(ctx_cam *cam)
}
}
if (cam->algsec->image_norm != NULL){
free(cam->algsec->image_norm);
cam->algsec->image_norm = NULL;
util_free_var(cam->algsec->image_norm);
}
if (waitcnt == 1000){