mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-05 18:10:27 +01:00
Allow extension closedown hook to be null.
This commit is contained in:
parent
f65c50c4e9
commit
6bcde69585
1 changed files with 2 additions and 1 deletions
|
|
@ -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;)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue