* 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:
Axel Dörfler 2009-05-16 20:00:59 +00:00
parent 51d94f48fe
commit d88527df5c
1 changed files with 1 additions and 1 deletions

View File

@ -1184,7 +1184,7 @@ LegacyDevice::Removed()
{
RecursiveLocker _(sLock);
if (!fRemovedFromParent)
if (!fRemovedFromParent && fDriver != NULL)
fDriver->devices.Remove(this);
delete this;