I found a bug about memory alloc

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:

Good find, thanks!