Alexander Motin e3ae9f65c2 Handle device_get_children() errors in more correct way.
We shouldn't detach until all children are surely destroyed.

Found with:     Coverity Prevent(tm)
CID:            2137
2008-11-22 15:35:21 +00:00
..
2008-11-18 23:19:43 +00:00
2008-11-14 09:58:16 +00:00
2008-11-12 12:21:18 +00:00