Fix simple-egl tear-down order to prevent a crash on exit time
authorYeh, Sinclair <sinclair.yeh@intel.com>
Fri, 19 Apr 2013 17:49:12 +0000 (17:49 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 1 May 2013 17:40:50 +0000 (13:40 -0400)
commit952e6df8fc688938f278597d0e01faa39f7f71ba
treef9425d8684addc3dd55865452792619d128aa3e5
parent93c76fe4b11dc012b459545f5a0e52868b6e5d5d
Fix simple-egl tear-down order to prevent a crash on exit time

wl_egl_window_destory() destroys the window handle that
dri2_destroy_surface() later uses when eglTerminate() is called.

Reordering the tear down order prevents such case from occuring.
clients/simple-egl.c