mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-04 11:00:04 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user