Archive 17/01/2023.

I found a bug about memory alloc

att

Hi,

I found a memory allocation bug,

[code]// Urho3D: added function
const char* SDL_IOS_GetResourceDir()
{
if (!resource_dir)
{
const char *temp = [[[NSBundle mainBundle] resourcePath] UTF8String];
resource_dir = malloc(strlen(temp + 1));
strcpy(resource_dir, temp);
}

return resource_dir;

}[/code]

should be

:smiley:

cadaver

Good find, thanks!