diff --git a/hw/xfree86/loader/loadmod.c b/hw/xfree86/loader/loadmod.c index f9b79a2cca..90407b9d9e 100644 --- a/hw/xfree86/loader/loadmod.c +++ b/hw/xfree86/loader/loadmod.c @@ -883,6 +883,7 @@ RemoveChild(ModuleDescPtr child) parent = child->parent; if (parent->child == child) { parent->child = child->sib; + child->sib = NULL; return; }