diff options
author | Adam Jackson <ajax@redhat.com> | 2008-07-24 09:13:26 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-07-24 15:46:08 -0400 |
commit | 6bcde69585fcc8f8dbfe81c115649f19274922fa (patch) | |
tree | 4b14efd7141f2d2b339d8340c1abf65dcbb77ce5 /dix | |
parent | f65c50c4e902c7b5619fb7bbee8462434d809ec7 (diff) |
Allow extension closedown hook to be null.
Diffstat (limited to 'dix')
-rw-r--r-- | dix/extension.c | 3 |
1 files changed, 2 insertions, 1 deletions
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;) |