mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
No memory leaks; Still need to turn-on Fortran
This commit is contained in:
parent
8da0b21940
commit
0cb7f62994
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user