this program will crash on exit with GC supported :
int main (int argc, const char * argv[])
{
sf::RenderWindow window(sf::VideoMode(1024, 768), "");
while (window.isOpen()) {
sf::Event event;
while (window.pollEvent(event)) {
if (event.type == sf::Event::KeyPressed && event.key.code == sf::Keyboard::Escape) window.close();
}
window.clear();
window.display();
}
return 0;
}
The problem is deep in osx implementation.