Free linked monitors

This commit is contained in:
Isaac Connor 2021-01-31 11:57:43 -05:00
parent a3fe577fc6
commit e08060af3f
1 changed files with 7 additions and 0 deletions

View File

@ -1105,6 +1105,13 @@ Monitor::~Monitor() {
delete camera;
delete storage;
if ( n_linked_monitors ) {
for ( int i=0; i < n_linked_monitors; i++ ) {
delete linked_monitors[i];
}
delete[] linked_monitors;
linked_monitors = nullptr;
}
} // end Monitor::~Monitor()
void Monitor::AddZones(int p_n_zones, Zone *p_zones[]) {