Fish for memory leaks in sega saturn SSF files.
This commit is contained in:
parent
40c723df79
commit
1dd18cf856
3 changed files with 15 additions and 1 deletions
|
@ -144,6 +144,7 @@ int32 ssf_start(uint8 *buffer, uint32 length)
|
|||
|
||||
// Dispose the corlett structure for the lib - we don't use it
|
||||
free(lib);
|
||||
free(lib_decoded);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -271,6 +272,9 @@ int32 ssf_gen(int16 *buffer, uint32 samples)
|
|||
|
||||
int32 ssf_stop(void)
|
||||
{
|
||||
scsp_stop();
|
||||
free(c);
|
||||
|
||||
return AO_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
@ -1169,6 +1169,14 @@ void *scsp_start(const void *config)
|
|||
return SCSP;
|
||||
}
|
||||
|
||||
void scsp_stop(void)
|
||||
{
|
||||
free(AllocedSCSP->buffertmpl);
|
||||
free(AllocedSCSP->buffertmpr);
|
||||
|
||||
free(AllocedSCSP);
|
||||
}
|
||||
|
||||
|
||||
void SCSP_set_ram_base(int which, void *base)
|
||||
{
|
||||
|
|
|
@ -25,6 +25,8 @@ struct SCSPinterface
|
|||
};
|
||||
|
||||
void *scsp_start(const void *config);
|
||||
void scsp_stop(void);
|
||||
|
||||
void SCSP_Update(void *param, INT16 **inputs, INT16 **buf, int samples);
|
||||
|
||||
#define READ16_HANDLER(name) data16_t name(offs_t offset, data16_t mem_mask)
|
||||
|
|
Loading…
Reference in a new issue