* Applied a patch by Rene that fixes bug #3856.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30770 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
51d94f48fe
commit
d88527df5c
|
@ -1184,7 +1184,7 @@ LegacyDevice::Removed()
|
|||
{
|
||||
RecursiveLocker _(sLock);
|
||||
|
||||
if (!fRemovedFromParent)
|
||||
if (!fRemovedFromParent && fDriver != NULL)
|
||||
fDriver->devices.Remove(this);
|
||||
|
||||
delete this;
|
||||
|
|
Loading…
Reference in New Issue