Skip to content

Commit

Permalink
fix some memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaller committed Mar 17, 2024
1 parent 72363a9 commit 03fa361
Show file tree
Hide file tree
Showing 2 changed files with 185 additions and 124 deletions.
5 changes: 5 additions & 0 deletions core/community.cpp
Expand Up @@ -107,6 +107,11 @@ Community::~Community(void)
{
//EIDOS_ERRSTREAM << "Community::~Community" << std::endl;

// our log file registry retains all log files
for (LogFile *log_file : log_file_registry_)
log_file->Release();
log_file_registry_.clear();

all_mutation_types_.clear();
all_genomic_element_types_.clear();

Expand Down

0 comments on commit 03fa361

Please sign in to comment.