| 71 | } |
| 72 | |
| 73 | void Object::detach() |
| 74 | { |
| 75 | if (!m_resource) |
| 76 | return; |
| 77 | |
| 78 | ObjectRegistry::current().deregisterObject(this); |
| 79 | |
| 80 | delete m_resource; |
| 81 | m_resource = new InvalidResource(); |
| 82 | } |
| 83 | |
| 84 | |
| 85 | } // namespace globjects |
no test coverage detected