| 75 | } |
| 76 | |
| 77 | XnNodeManager* XnNodeManager::GetInstance() |
| 78 | { |
| 79 | // NOTE: we *never* free the NodeManager instance, as it should always exist. Global variables dtors |
| 80 | // might still use lists and hashs to do their work. |
| 81 | // Instead, we let the OS free its memory and resources. |
| 82 | static XnNodeManager* pNM = XN_NEW(XnNodeManager); |
| 83 | return pNM; |
| 84 | } |
| 85 | |
| 86 | XnNode* XnNodeManager::Allocate() |
| 87 | { |