egl: Use _eglAddAtExitCall to free thread infos and displays.
authorChia-I Wu <olvaffe@gmail.com>
Mon, 10 Aug 2009 08:45:12 +0000 (16:45 +0800)
committerBrian Paul <brianp@vmware.com>
Wed, 12 Aug 2009 04:14:35 +0000 (22:14 -0600)
commit64e7bb326207df559b5cebdb278f62df83cf1425
tree3a30ae4d91b65757dced4b6f4e599b6a6c9180ed
parent435c7ac24d8d6f8ddae59f4b66983d7642250d1e
egl: Use _eglAddAtExitCall to free thread infos and displays.

Thread infos and displays are usually not freed by applications.  This
commit add atexit calls to free them.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/egl/main/eglcurrent.c
src/egl/main/egldisplay.c