Added guards in create object initialization to prevent memory leaks (#664)

This commit is contained in:
Steve Karg
2024-06-02 07:09:26 -05:00
committed by GitHub
parent ec066fcc70
commit 17c5e2e98d
12 changed files with 33 additions and 18 deletions
+3 -1
View File
@@ -1220,5 +1220,7 @@ void Multistate_Output_Cleanup(void)
*/
void Multistate_Output_Init(void)
{
Object_List = Keylist_Create();
if (!Object_List) {
Object_List = Keylist_Create();
}
}