From 71b7c34b0a8b88fc17447d260a70b3a3be033e07 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Wed, 26 Apr 2023 11:04:43 -0400 Subject: [PATCH] ACS: Allocate user properties with PU_LEVEL --- src/k_mapuser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/k_mapuser.c b/src/k_mapuser.c index a19d1c62e..9253e1eaa 100644 --- a/src/k_mapuser.c +++ b/src/k_mapuser.c @@ -46,7 +46,7 @@ void K_UserPropertyPush(mapUserProperties_t *user, const char *key, mapUserPrope user->properties = (mapUserProperty_t *)Z_ReallocAlign( user->properties, sizeof(mapUserProperty_t) * user->capacity, - PU_STATIC, // PU_LEVEL + PU_LEVEL, NULL, sizeof(mapUserProperty_t) * 8 ); @@ -54,7 +54,7 @@ void K_UserPropertyPush(mapUserProperties_t *user, const char *key, mapUserPrope prop = &user->properties[ user->length ]; - prop->key = Z_Malloc(keyLength + 1, PU_STATIC, NULL); + prop->key = Z_Malloc(keyLength + 1, PU_LEVEL, NULL); M_Memcpy(prop->key, key, keyLength + 1); prop->key[keyLength] = '\0'; @@ -83,7 +83,7 @@ void K_UserPropertyPush(mapUserProperties_t *user, const char *key, mapUserPrope const char *string = *(const char **)value; const size_t stringLength = strlen(string); - prop->valueStr = Z_Malloc(stringLength + 1, PU_STATIC, NULL); + prop->valueStr = Z_Malloc(stringLength + 1, PU_LEVEL, NULL); M_Memcpy(prop->valueStr, string, stringLength + 1); prop->valueStr[stringLength] = '\0'; break;