Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit 801c923

Browse files
committed
Merge pull request #392 from fungl164/osx-live
Fix browser launch params variable assignment before freeing memory
2 parents adf27a6 + 48cee7e commit 801c923

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

appshell/appshell_extensions_mac.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,10 +1418,11 @@ int32 GetArgvFromProcessID(int pid, NSString **argv)
14181418
goto ERROR_B;
14191419
}
14201420

1421+
*argv = [NSString stringWithCString:sp encoding:NSUTF8StringEncoding];
1422+
14211423
/* Clean up. */
14221424
free(procargs);
14231425

1424-
*argv = [NSString stringWithCString:sp encoding:NSUTF8StringEncoding];
14251426
return NO_ERROR;
14261427

14271428
ERROR_B:

0 commit comments

Comments
 (0)