/* ==================== ModPlug_FetchEnd ==================== */ static void ModPlug_FetchEnd (void *chfetcherdata) { modplug_stream_perchannel_t* per_ch = (modplug_stream_perchannel_t *)chfetcherdata; if (per_ch != NULL) { // Free the modplug decoder qModPlug_Unload (per_ch->mf); Mem_Free (per_ch); } }
/* ==================== ModPlug_StopChannel ==================== */ static void ModPlug_StopChannel(channel_t *ch) { modplug_stream_perchannel_t *per_ch = (modplug_stream_perchannel_t *)ch->fetcher_data; if (per_ch != NULL) { // Free the modplug decoder qModPlug_Unload(per_ch->mf); Mem_Free(per_ch); } }