mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-03-04 09:27:15 +00:00
Prevent dereference before null check
This commit is contained in:
parent
77d0745f38
commit
a741dadf20
@ -711,6 +711,9 @@ static void fft_context_destroy(glfft_t *fft)
|
||||
|
||||
extern "C" void glfft_free(glfft_t *fft)
|
||||
{
|
||||
if (!fft)
|
||||
return;
|
||||
|
||||
fft_context_destroy(fft);
|
||||
if (fft)
|
||||
free(fft);
|
||||
|
Loading…
x
Reference in New Issue
Block a user