1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 12:55:14 +03:00

FIx memory leak on model rendering

This commit is contained in:
IvoFPV 2019-09-28 02:29:31 +02:00
parent 074bb46f78
commit b324efca9b
4 changed files with 8 additions and 0 deletions

View file

@ -605,6 +605,7 @@ TABS.receiver.cleanup = function (callback) {
$(window).off('resize', this.resize);
if (this.model) {
$(window).off('resize', $.proxy(this.model.resize, this.model));
this.model.dispose();
}
this.keepRendering = false;