mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +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)
|
extern "C" void glfft_free(glfft_t *fft)
|
||||||
{
|
{
|
||||||
|
if (!fft)
|
||||||
|
return;
|
||||||
|
|
||||||
fft_context_destroy(fft);
|
fft_context_destroy(fft);
|
||||||
if (fft)
|
if (fft)
|
||||||
free(fft);
|
free(fft);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user