iphreeqc/UserPunch.cpp
Scott R Charlton fcff4cc3b7 Fixed left shift operator error and null pointer error for R UBSAN check;
Added INVERSE_CL1MP guard to cl1mp.cpp;
Added test for ex10


git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@9084 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2014-12-03 05:19:35 +00:00

24 lines
412 B
C++

#include "UserPunch.h"
#include "Phreeqc.h"
UserPunch::UserPunch(int n, PHRQ_io *io)
: cxxNumKeyword(io)
{
this->PhreeqcPtr = NULL;
this->rate = NULL;
}
UserPunch::~UserPunch(void)
{
if (this->rate != NULL)
{
if (this->PhreeqcPtr != NULL)
{
this->PhreeqcPtr->rate_free(this->rate);
this->PhreeqcPtr->free_check_null(this->rate);
}
}
this->PhreeqcPtr = NULL;
this->rate = NULL;
}