mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-15 00:13:28 +00:00
Merge remote branch 'ajax/less-loader'
This commit is contained in:
commit
5532687a92
19 changed files with 98 additions and 522 deletions
|
|
@ -125,7 +125,6 @@ xf86AddInputDriver(InputDriverPtr driver, pointer module, int flags)
|
|||
xnfalloc(sizeof(InputDriverRec));
|
||||
*xf86InputDriverList[xf86NumInputDrivers - 1] = *driver;
|
||||
xf86InputDriverList[xf86NumInputDrivers - 1]->module = module;
|
||||
xf86InputDriverList[xf86NumInputDrivers - 1]->refCount = 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -284,7 +283,6 @@ xf86AllocateInput(InputDriverPtr drv, int flags)
|
|||
return NULL;
|
||||
|
||||
new->drv = drv;
|
||||
drv->refCount++;
|
||||
new->module = DuplicateModule(drv->module, NULL);
|
||||
|
||||
for (prev = &xf86InputDevs; *prev; prev = &(*prev)->next)
|
||||
|
|
@ -320,9 +318,6 @@ xf86DeleteInput(InputInfoPtr pInp, int flags)
|
|||
if (pInp->module)
|
||||
UnloadModule(pInp->module);
|
||||
|
||||
if (pInp->drv)
|
||||
pInp->drv->refCount--;
|
||||
|
||||
/* This should *really* be handled in drv->UnInit(dev) call instead, but
|
||||
* if the driver forgets about it make sure we free it or at least crash
|
||||
* with flying colors */
|
||||
|
|
|
|||
Loading…
Reference in a new issue