fix the Memory leak: psp (#16016)

fix the Memory leak: psp

Signed-off-by: zengwei zengwei1@uniontech.com

Signed-off-by: zengwei zengwei1@uniontech.com
This commit is contained in:
zengwei2000 2023-12-21 08:24:35 +08:00 committed by GitHub
parent 4abd4e8d27
commit df05f6e0eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,10 @@ static void *psp_audio_init(const char *device,
return NULL;
if ((port = configureAudio(rate)) < 0)
{
free(psp);
return NULL;
}
#if defined(ORBIS)
sceAudioOutInit();