mesa: call atexit() only as needed
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 6 Nov 2017 16:02:32 +0000 (16:02 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 16 Nov 2017 14:08:03 +0000 (14:08 +0000)
commit9aa9b98e63a88c823ef7248f936fc39fd7e1d00a
treee87f823fc20bcee7437ce1eba0c1fb9d230452d9
parent3d81e11b49366b5636b8524ba0f8c7076e3fdf34
mesa: call atexit() only as needed

If the extra_extensions string is empty there's no need to call
atexit() - there's nothing to free.

v2: Rebase

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Brian Paul <brianp@vmware.com> (v1)
src/mesa/main/extensions.c