fixed memory leak bug

Fixed a memory leak that could occur with the select response widget.