blackberry/GamePlay — pull request #583 by pooerh (2012-11-09 20:44:48+00:00)
Title: Linux platform fix for crash on game exit / window destroy

Game loop was not broken out of on Game::exit(), resulting in a crash as the next update was on objects that were already released.

Also, DestroyNotify event is not sent when the window is closed if the window was remapped by the window manager (remapping is what happens when all the window decorations are added by the WM). When WM closed the window, there was no code cleanup (Game::finalize()), fixed with the WM_DESTROY_WINDOW client message.