Fix memory leak: do not use the same promise to instanciate all gadgets.
Seems the .then method never realse the memory if the original promise is kept. Manually create new promise instead each time.
Showing
Seems the .then method never realse the memory if the original promise is kept. Manually create new promise instead each time.
What exactly is the defer_list
which is causing the troubles? I don't understand...
P.S. Maybe comments in the code would help