The device object is supposed to be deleted after the removed hook returns.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29186 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2009-02-12 21:09:00 +00:00
parent 1e5a02e76f
commit f7de06baf3

View File

@ -117,8 +117,10 @@ WatchedEntry::~WatchedEntry()
}
}
if (fDevice)
if (fDevice) {
fRoster->DeviceRemoved(fDevice);
delete fDevice;
}
}