mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-25 00:35:04 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue