MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / xs_mp3_destructor

Function xs_mp3_destructor

modules/data/mp3/mp3.c:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39typedef struct xsMP3Record *xsMP3;
40
41void xs_mp3_destructor(void *data)
42{
43 xsMP3 mp3 = data;
44 if (!mp3) return;
45
46 mad_synth_finish(&mp3->synth);
47 mad_frame_finish(&mp3->frame);
48 mad_stream_finish(&mp3->stream);
49 c_free(mp3);
50}
51
52void xs_mp3(xsMachine *the)
53{

Callers 1

xs_mp3_closeFunction · 0.85

Calls 2

mad_frame_finishFunction · 0.85
mad_stream_finishFunction · 0.85

Tested by

no test coverage detected