session: Use autofree in dialog