From 6bcde69585fcc8f8dbfe81c115649f19274922fa Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 24 Jul 2008 09:13:26 -0400 Subject: Allow extension closedown hook to be null. --- dix/extension.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dix/extension.c') diff --git a/dix/extension.c b/dix/extension.c index 9740c1b50..5dbdb956d 100644 --- a/dix/extension.c +++ b/dix/extension.c @@ -247,7 +247,8 @@ CloseDownExtensions(void) for (i = NumExtensions - 1; i >= 0; i--) { - (* extensions[i]->CloseDown)(extensions[i]); + if (extensions[i]->CloseDown) + extensions[i]->CloseDown(extensions[i]); NumExtensions = i; xfree(extensions[i]->name); for (j = extensions[i]->num_aliases; --j >= 0;) -- cgit v1.2.3