Fix use-after-free when calling v.drawString in Lua
Compare changes
+ 9
− 0
@@ -177,9 +177,18 @@ static const char *CopyString(huddrawlist_h list, const char* str)
@@ -177,9 +177,18 @@ static const char *CopyString(huddrawlist_h list, const char* str)
list->strbuf = (char*) Z_Realloc(list->strbuf, sizeof(char) * list->strbuf_capacity, PU_STATIC, NULL);