mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-28 03:34:17 +01: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.
|
// We check both parameters and the environment variable here.
|
||||||
char *envVarDumpSubdirectory = getenv(BREAKPAD_DUMP_DIRECTORY);
|
char *envVarDumpSubdirectory = getenv(BREAKPAD_DUMP_DIRECTORY);
|
||||||
NSString *dumpSubdirectory = envVarDumpSubdirectory ?
|
NSString *dumpSubdirectory = envVarDumpSubdirectory ?
|
||||||
[[NSString alloc] initWithUTF8String:envVarDumpSubdirectory] :
|
[NSString stringWithUTF8String:envVarDumpSubdirectory] :
|
||||||
[parameters objectForKey:@BREAKPAD_DUMP_DIRECTORY];
|
[parameters objectForKey:@BREAKPAD_DUMP_DIRECTORY];
|
||||||
|
|
||||||
NSDictionary *serverParameters =
|
NSDictionary *serverParameters =
|
||||||
|
Loading…
Reference in New Issue
Block a user