Quiet Clang Static Analyzer warnings.

Most of the warnings were caused by uninitialized values. Some were in plug-ins that didn't have a break in a switch, causing the memory to be deleted twice.
This commit is contained in:
C.W. Betts
2024-04-19 17:42:17 -06:00
parent 0d6fcb1e7e
commit 7d7f5bf896
82 changed files with 99 additions and 55 deletions

View File

@@ -798,6 +798,7 @@ void STDCALL DestroyInstance(int id, void *ptr) {
switch (id) {
case ID_LEVEL_0000:
delete ((LevelScript_0000 *)ptr);
break;
case ID_CUSTOM_OBJECT_3855:
delete ((CustomObjectScript_3855 *)ptr);
break;