Memory Leak Bug Fixed

This commit is contained in:
Luis Fernando Molina committed 2019-09-17 19:28:53 +02:00
1 parent 363ce4d302
commit e96ce4e484
2 files changed
+22 -3

No files matched your search

+10 -1
View File
@@ -12,10 +12,11 @@
const ONE_DAY_IN_MILISECONDS = 24 * 60 * 60 * 1000;
const commons = COMMONS.newCommons(bot, logger, UTILITIES);
let commons = COMMONS.newCommons(bot, logger, UTILITIES);
thisObject = {
initialize: initialize,
finalize: finalize,
start: start
};
@@ -44,6 +45,14 @@
}
}
function finalize() {
commons.finalize()
commons = undefined
utilities = undefined
assistant = undefined
thisObject = undefined
}
function start(multiPeriodDataFiles, timePeriod, timePeriodLabel, currentDay, startDate, endDate, interExecutionMemory, callBackFunction) {
try {