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:
parent
4abd4e8d27
commit
df05f6e0eb
|
@ -136,7 +136,10 @@ static void *psp_audio_init(const char *device,
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if ((port = configureAudio(rate)) < 0)
|
if ((port = configureAudio(rate)) < 0)
|
||||||
|
{
|
||||||
|
free(psp);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(ORBIS)
|
#if defined(ORBIS)
|
||||||
sceAudioOutInit();
|
sceAudioOutInit();
|
||||||
|
|
Loading…
Reference in New Issue