This code is just setting the path string, so you don't need to clone p_apk_path first. Something like this is fine:
```
MCStringRef t_new_path;
if (!MCStringCreateWithCString(p_apk_path, t_new_path))
  return false;
if (s_current_apk_folder != nil)
  MCValueRelease(s_current_apk_folder);
s_current_apk_folder = t_new_path;
return true;
```