MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnDestroy

Method OnDestroy

Descent3/mmItem.cpp:191–196  ·  view source on GitHub ↗

override: behavior when gadget is destroyed.

Source from the content-addressed store, hash-verified

189
190// override: behavior when gadget is destroyed.
191void mmItem::OnDestroy() {
192 if (m_text) {
193 mem_free(m_text);
194 m_text = NULL;
195 }
196}
197
198void mmItem::OnSelect() {
199 PlayMenuSound(m_window->SoundHandles[MM_SELECT_SOUND], true);

Callers

nothing calls this directly

Calls 5

D3MusicStopFunction · 0.85
FreeLargeBitmapFunction · 0.85
EndMovieFunction · 0.85
SetUICallbackFunction · 0.85
StopAllSoundsMethod · 0.45

Tested by

no test coverage detected