VM: safe_strdup needs to be called in vm_executable_path
parent
335615a025
commit
8ae6e8e23d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue