File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class RoadRunnerIntracellular : public PhysiCell::Intracellular
7373 std::vector<RoadRunnerMapping *> output_mappings;
7474 std::map<std::string, int > species_result_column_index;
7575
76- rrc::RRHandle rrHandle;
76+ rrc::RRHandle rrHandle = NULL ;
7777 rrc::RRCDataPtr result = 0 ; // start time, end time, and number of points
7878
7979 double update_time_step = 0.01 ;
@@ -86,6 +86,15 @@ class RoadRunnerIntracellular : public PhysiCell::Intracellular
8686
8787 RoadRunnerIntracellular (RoadRunnerIntracellular* copy);
8888
89+ ~RoadRunnerIntracellular ()
90+ {
91+ if (this ->rrHandle != NULL )
92+ {
93+ rrc::freeRRInstance (this ->rrHandle );
94+ this ->rrHandle = NULL ;
95+ }
96+ }
97+
8998 Intracellular* clone ()
9099 {
91100 RoadRunnerIntracellular* clone = new RoadRunnerIntracellular (this );
You can’t perform that action at this time.
0 commit comments