xfree86: cache dev->isMaster before freeing the device.
This commit is contained in:
parent
05cdef18ca
commit
5e213fe102
|
@ -611,6 +611,7 @@ DeleteInputDeviceRequest(DeviceIntPtr pDev)
|
|||
InputDriverPtr drv;
|
||||
IDevRec *idev;
|
||||
IDevPtr *it;
|
||||
Bool isMaster = pDev->isMaster;
|
||||
|
||||
if (pInfo) /* need to get these before RemoveDevice */
|
||||
{
|
||||
|
@ -621,7 +622,7 @@ DeleteInputDeviceRequest(DeviceIntPtr pDev)
|
|||
OsBlockSignals();
|
||||
RemoveDevice(pDev);
|
||||
|
||||
if (!pDev->isMaster)
|
||||
if (!isMaster)
|
||||
{
|
||||
if(drv->UnInit)
|
||||
drv->UnInit(drv, pInfo, 0);
|
||||
|
|
Loading…
Reference in New Issue
Block a user