mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-02 06:42:10 +00:00
Use free instead of Free as free checks for NULL.
This commit is contained in:
@@ -261,12 +261,6 @@ char *Alloc(int size)
|
||||
return p;
|
||||
}
|
||||
|
||||
void Free(void *ptr)
|
||||
{
|
||||
if (ptr != NULL)
|
||||
free(ptr);
|
||||
}
|
||||
|
||||
#pragma GCC visibility push(default)
|
||||
|
||||
ESPEAK_NG_API void espeak_ng_InitializePath(const char *path)
|
||||
@@ -884,9 +878,9 @@ ESPEAK_NG_API espeak_ng_STATUS espeak_ng_Terminate(void)
|
||||
out_samplerate = 0;
|
||||
}
|
||||
#endif
|
||||
Free(event_list);
|
||||
free(event_list);
|
||||
event_list = NULL;
|
||||
Free(outbuf);
|
||||
free(outbuf);
|
||||
outbuf = NULL;
|
||||
FreePhData();
|
||||
FreeVoiceList();
|
||||
|
||||
Reference in New Issue
Block a user