VM: safe_strdup needs to be called in vm_executable_path

locals-and-roots
Björn Lindqvist 2016-05-14 19:00:20 +02:00
parent 335615a025
commit 8ae6e8e23d
1 changed files with 2 additions and 1 deletions

View File

@ -22,8 +22,9 @@ void early_init(void) {
}
}
/* You must free() this yourself. */
const char* vm_executable_path(void) {
return [[[NSBundle mainBundle] executablePath] UTF8String];
return safe_strdup([[[NSBundle mainBundle] executablePath] UTF8String]);
}
const char* default_image_path(void) {