Skip to content

Commit

Permalink
Trial to simplify solver call : crash correction
Browse files Browse the repository at this point in the history
  • Loading branch information
guilpier-code committed Oct 4, 2024
1 parent 27fc92e commit a4f1d80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ void ORTOOLS_CorrigerLesBornes(MPSolver* ProbSpx,
const double* bMax,
const int* typeVar,
int nbVar);
void ORTOOLS_LibererProbleme(MPSolver* ProbSpx);
void ORTOOLS_LibererProbleme(MPSolver*& ProbSpx);

#endif
2 changes: 1 addition & 1 deletion src/solver/utils/ortools_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ void ORTOOLS_CorrigerLesBornes(MPSolver* solver,
}
}

void ORTOOLS_LibererProbleme(MPSolver* solver)
void ORTOOLS_LibererProbleme(MPSolver*& solver)
{
delete solver;
solver = nullptr;
Expand Down

0 comments on commit a4f1d80

Please sign in to comment.