def METHOD_NAME(self):
    """Clean up action data to avoid widget leaks."""
    for ax in self.actions():
        ax.setData(None)
        with contextlib.suppress(AttributeError):
            ax.METHOD_NAME()
    if self in self._INSTANCES:
        self._INSTANCES.remove(self)