Added guards in create object initialization to prevent memory leaks (#664)
This commit is contained in:
@@ -745,5 +745,7 @@ void Life_Safety_Point_Cleanup(void)
|
||||
*/
|
||||
void Life_Safety_Point_Init(void)
|
||||
{
|
||||
Object_List = Keylist_Create();
|
||||
if (!Object_List) {
|
||||
Object_List = Keylist_Create();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user