Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #392 from fungl164/osx-live

Fix browser launch params variable assignment before freeing memory
  • Loading branch information...
commit 801c9232ef416470cab7060559abd6b3bce70aa4 2 parents adf27a6 + 48cee7e
@redmunds redmunds authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  appshell/appshell_extensions_mac.mm
View
3  appshell/appshell_extensions_mac.mm
@@ -1418,10 +1418,11 @@ int32 GetArgvFromProcessID(int pid, NSString **argv)
goto ERROR_B;
}
+ *argv = [NSString stringWithCString:sp encoding:NSUTF8StringEncoding];
+
/* Clean up. */
free(procargs);
- *argv = [NSString stringWithCString:sp encoding:NSUTF8StringEncoding];
return NO_ERROR;
ERROR_B:
Please sign in to comment.
Something went wrong with that request. Please try again.