fix(w.w.template) free queued_updates array

This is a small cleanup to not keep in memory a value we don't need.

After the update_callback callback is called, we don't need to remember
it happens this callback was  queued before. (It also prevents a
possible memory leak (of a boolean value) when widgets are destroyed)
This commit is contained in:
Aire-One 2021-11-11 19:34:10 +01:00 committed by Emmanuel Lepage Vallee
parent cd5dda385e
commit aaec225545
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ function template:_do_update_now()
end end
self._private.update_args = nil self._private.update_args = nil
template.queued_updates[self] = false template.queued_updates[self] = nil
end end
--- Update the widget. --- Update the widget.