unload xauth_module only if XAUTH_DEFAULT_LIB is defined

This commit is contained in:
Andreas Steffen
2007-01-28 00:14:50 +00:00
parent 7bca75e51c
commit e43641e712
+2
View File
@@ -61,6 +61,7 @@ xauth_init(void)
void
xauth_finalize(void)
{
#ifdef XAUTH_DEFAULT_LIB
if (xauth_module.handle != NULL)
{
if (dlclose(xauth_module.handle))
@@ -74,4 +75,5 @@ xauth_finalize(void)
)
}
}
#endif
}