This comment does not seem to be correct here. The widget is disposed by the framework with the rest of the template when the template test ends.