Squashed 'phreeqcpp/' changes from 8fa568f..3b5f98c

3b5f98c No memory leaks; Still need to turn-on Fortran

git-subtree-dir: phreeqcpp
git-subtree-split: 3b5f98c838520da9638d08384186b2c85103ff30
This commit is contained in:
Darth Vader 2023-08-25 03:29:16 +00:00
parent 322a40bb3a
commit e902474819

View File

@ -63,6 +63,7 @@ ofstream_open(std::ostream **os, const char *file_name, std::ios_base::openmode
std::ofstream *ofs = new std::ofstream(file_name, mode);
if (ofs && ofs->is_open())
{
safe_close(os);
*os = ofs;
return true;
}