Disposes this sound group, freeing up the OpenAL sources with which it is associated. All
sounds obtained from this group will no longer be usable and should be discarded.
336540
public void dispose ()
    {
        reclaimAll();
        for (PooledSource pooled : _sources) {
            pooled.source.delete();
        }
        _sources.clear();

        // remove from the manager
        _manager.removeGroup(this);
    }
43168
public void dropAllTracks() {
		tracksUnused.addAll(tracksDormant);
		tracksUnused.addAll(tracksPureKlt);
		tracksUnused.addAll(tracksReactivated);

		tracksSpawned.clear();
		tracksPureKlt.clear();
		tracksReactivated.clear();
		tracksSpawned.clear();
		tracksDormant.clear();
	}
947860
public void destroy() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.entry(tc, "destroy");
        }
        this.bRunning = false;
        this.ncsaLog.disable();
        this.frcaLog.disable();
        this.debugLog.disable();

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.exit(tc, "destroy");
        }
    }
302600
@Override
	public void dispose() {

		IOUtils.closeQuietly(cancelStreamRegistry);

		if (kvStateRegistry != null) {
			kvStateRegistry.unregisterAll();
		}

		lastName = null;
		lastState = null;
		keyValueStatesByName.clear();
	}
747576
public function cleanup(): void
    {
        foreach ($this->getStore() as $key => $value)
        {
            $this->remove($key);
        }
    }
605020
def remove(self):
        
        for cgroup in self.paths:
            remove_cgroup(cgroup)

        del self.paths
        del self.per_subsystem
1131652
private void destroy() {
        if (queue != null) {

            if (!queue.isEmpty()) {
                logger.trace("Non-empty queue: {}", queue);

                if (releaseMessages) {
                    Object msg;
                    while ((msg = queue.poll()) != null) {
                        ReferenceCountUtil.safeRelease(msg);
                    }
                }
            }

            queue.recycle();
            queue = null;
        }
    }
861772
def close(self):
        """"""
        if not self.closed:
            check(_coreaudio.ExtAudioFileDispose(self._obj))
            self.closed = True
657003
private void cleanUpSource() {
		SoundStore store = SoundStore.get();
		
		AL10.alSourceStop(store.getSource(0));
		IntBuffer buffer = BufferUtils.createIntBuffer(1);
		int queued = AL10.alGetSourcei(store.getSource(0), AL10.AL_BUFFERS_QUEUED);
		
		while (queued > 0)
		{
			AL10.alSourceUnqueueBuffers(store.getSource(0), buffer);
			queued--;
		}
		
		AL10.alSourcei(store.getSource(0), AL10.AL_BUFFER, 0);
	}
861874
public function dispose() {
        if ($this->stores) {
            foreach ($this->stores as $store) {
                $store->dispose();
            }
        }
        $this->stores = null;
        $this->readers = null;
        $this->writers = null;
    }
809231
public void dispose ()
    {
        if (_buffer != null) {
            // if there are sources bound to this buffer, we must wait
            // for them to be unbound
            if (_bound > 0) {
                _state = UNLOADING;
                return;
            }

            // free up our buffer
            _buffer.delete();
            _buffer = null;
            _state = UNLOADED;
        }
    }
551004
public void dispose() {
        if (executionPlan != null) {
            executionPlan.dispose();
        }
        if (appClassList != null) {
            appClassList.clear();
        }
        if (classObserverList != null) {
            classObserverList.clear();
        }
        if (referencedClassSet != null) {
            referencedClassSet.clear();
        }
        analysisOptions.analysisFeatureSettingList = null;
        bugReporter = null;
        classFactory = null;
        IO.close(classPath);
        classPath = null;
        classScreener = null;
        detectorFactoryCollection = null;
        executionPlan = null;
        progressReporter = null;
        IO.close(project);
        project = null;
        analysisOptions.userPreferences = null;
    }
1332820
def remove(self, sound):
        
        with self.chunk_available:
            sound.playing = False
            self.sounds.remove(sound)
56511
public static void dispose() {

    if (xml2containerMap != null) {
      for (SpringContainer container : xml2containerMap.values()) {
        container.dispose();
      }
      xml2containerMap.clear();
    }
  }
469357
private synchronized void unloadSources() {
        nodesSourceList = new ArrayList<>();
        Closeables.closeQuietly(nodeSourceReferences);
        nodeSourceReferences = new HashSet<>();
        sourcesOpened = false;
    }
474794
void uninstallGroup(WABInstaller installer) {
        //call for each of them to be removed
        //in practice this will only mean one web container removal for the group
        //but we need all the removes to update the WAB states.
        if (wabs != null) {
            //iterating over a concurrentlinkedqueue without a lock, means we'll see everything in the list
            //thats present when we get the iterator. it will NOT throw concurrentmodification if the list is
            //modified during iteration, but also does not guarantee to reflect all external modifications
            List<WAB> toRemove = new ArrayList<WAB>();
            for (WAB wab : wabs) {
                //remove the wab from the webcontainer, if needed.
                wab.terminateWAB();
                wab.removeWAB();
                toRemove.add(wab);
            }
            wabs.removeAll(toRemove);
            if (wabs.size() != 0) {
                installer.wabLifecycleDebug("First pass wab group uninstall detected outstanding WABs", wabs);
                toRemove.clear();
                for (WAB wab : wabs) {
                    //remove the wab from the webcontainer, if needed.
                    wab.terminateWAB();
                    wab.removeWAB();
                    toRemove.add(wab);
                }
                wabs.removeAll(toRemove);
                //any left in the 2nd pass just don't get removed.
                if (wabs.size() != 0) {
                    installer.wabLifecycleDebug("Second pass wab group uninstall detected outstanding WABs", wabs);
                }
            }
        }
    }
1235714
private void dispose(Collection<?> elements) {
        // Dispose all disposable elements
        for (Object element : elements) {
            if (element instanceof Disposable) {
                ((Disposable) element).dispose();
            }
        }

        // Clear collection
        dataProviders.clear();
    }