mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 632341 - Fix bogus assertion in the case where there is no sensor.dll. ASSERTION: Shutdown called when mLibrary is null. r=blassey
This commit is contained in:
parent
4c7c7773bc
commit
84ab5686cf
@ -98,7 +98,9 @@ ThinkPadSensor::Startup()
|
||||
void
|
||||
ThinkPadSensor::Shutdown()
|
||||
{
|
||||
NS_ASSERTION(mLibrary, "Shutdown called when mLibrary is null?");
|
||||
if (mLibrary == nsnull)
|
||||
return;
|
||||
|
||||
FreeLibrary(mLibrary);
|
||||
mLibrary = nsnull;
|
||||
gShockproofGetAccelerometerData = nsnull;
|
||||
|
Loading…
Reference in New Issue
Block a user