mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-19 02:57:05 +00:00
eSpeakService.cpp: use 'delete' instead of 'free' to release memory allocated via 'new'.
This commit is contained in:
@@ -157,7 +157,7 @@ JNICALL Java_com_reecedunn_espeak_SpeechSynthesis_nativeDestroy(
|
||||
|
||||
env->DeleteWeakGlobalRef(nat->object);
|
||||
|
||||
free(nat);
|
||||
delete nat;
|
||||
|
||||
return JNI_TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user