OpenNI2Device::~OpenNI2Device() { stopAllStreams(); shutdown(); openni_device_->close(); }
void NetscapePlugin::destroy() { ASSERT(m_isStarted); // Stop all streams. stopAllStreams(); #if !PLUGIN_ARCHITECTURE(MAC) m_npWindow.window = 0; callSetWindow(); #endif NPP_Destroy(0); m_isStarted = false; m_pluginController = 0; platformDestroy(); }
void NetscapePlugin::destroy() { ASSERT(m_isStarted); // Stop all streams. stopAllStreams(); #if !PLUGIN_ARCHITECTURE(MAC) && !PLUGIN_ARCHITECTURE(X11) m_npWindow.window = 0; callSetWindow(); #endif NPP_Destroy(0); m_isStarted = false; platformDestroy(); m_timers.clear(); }