mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-23 09:15:45 +00:00
Fix a memory leak, using stringWithUTF8String instead.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1202 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
fce16c1856
commit
437706b60a
|
@ -330,7 +330,7 @@ bool Breakpad::ExtractParameters(NSDictionary *parameters) {
|
|||
// We check both parameters and the environment variable here.
|
||||
char *envVarDumpSubdirectory = getenv(BREAKPAD_DUMP_DIRECTORY);
|
||||
NSString *dumpSubdirectory = envVarDumpSubdirectory ?
|
||||
[[NSString alloc] initWithUTF8String:envVarDumpSubdirectory] :
|
||||
[NSString stringWithUTF8String:envVarDumpSubdirectory] :
|
||||
[parameters objectForKey:@BREAKPAD_DUMP_DIRECTORY];
|
||||
|
||||
NSDictionary *serverParameters =
|
||||
|
|
Loading…
Reference in a new issue