fixed crash bug on MAC osx &glfw

Fixed.
GLFW caused a crash if textboxes were not released manually, because it
released them on exit .
Fixed.