void S_Shutdown(void) { if (!sound_started) return; SNDDMA_Shutdown(); sound_started = false; UnregisterCommand("play"); UnregisterCommand("stopsound"); UnregisterCommand("soundlist"); UnregisterCommand("soundinfo"); // free all sounds int i; sfx_t *sfx; for (i = 0, sfx = known_sfx; i < num_sfx; i++, sfx++) { if (!sfx->Name[0]) continue; if (sfx->cache) appFree(sfx->cache); memset(sfx, 0, sizeof(*sfx)); } num_sfx = 0; }
void ShutdownModels() { FreeModels(); UnregisterCommand("modellist"); #if TEST_LOAD UnregisterCommand("loadmodel"); #endif }
void GatePlugin::OnShutdown() { UnregisterCommand(&m_list_cmd); UnregisterCommand(&m_disconnect_cmd); UnregisterCommand(&m_logout_cmd); RedisDisconnect(); m_conn->CloseAll(TCPServer::CloseReason::kShutdown); delete m_users; delete m_conn; }
bool CHotKeysToCmdRouter::UnregisterAllCommands() { bool result = true; while(!m_hot_key_map.empty()) { if (!UnregisterCommand(m_hot_key_map.begin()->second.m_id_command)) result = false; } return result; }
/***************************************************************************** * Destroy: destroy adjust video thread output method ***************************************************************************** * Terminate an output method created by adjustCreateOutputMethod *****************************************************************************/ static void Destroy( vlc_object_t *p_this ) { filter_t *p_filter = (filter_t *)p_this; filter_sys_t *p_sys = p_filter->p_sys; BufferDestroy( &p_sys->input ); BufferDestroy( &p_sys->output ); QueueDestroy( &p_sys->atomic ); QueueDestroy( &p_sys->pending ); QueueDestroy( &p_sys->processed ); do_ListDestroy( &p_sys->overlays ); UnregisterCommand( p_filter ); var_DelCallback( p_filter, "overlay-input", AdjustCallback, p_sys ); var_DelCallback( p_filter, "overlay-output", AdjustCallback, p_sys ); vlc_mutex_destroy( &p_sys->lock ); free( p_sys->psz_inputfile ); free( p_sys->psz_outputfile ); free( p_sys ); }
void RestClientPluginTest::OnShutdown() { UnregisterCommand(&m_command); }
void ShutdownFonts() { UnregisterCommand("fontlist"); }