diff options
author | yuwu@google.com <yuwu@google.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2013-07-17 18:31:24 +0000 |
---|---|---|
committer | yuwu@google.com <yuwu@google.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2013-07-17 18:31:24 +0000 |
commit | 437706b60a22eed3f8e0a70ef744cdcf62159529 (patch) | |
tree | 22cffab36b776c543ae0c0bfa53af6e9c2d3a706 /src/client | |
parent | Check env var BreakpadMinidumpLocation first, if set, use it as BREAKPAD_DUMP... (diff) | |
download | breakpad-437706b60a22eed3f8e0a70ef744cdcf62159529.tar.xz |
Fix a memory leak, using stringWithUTF8String instead.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1202 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/ios/Breakpad.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/ios/Breakpad.mm b/src/client/ios/Breakpad.mm index 77f79ba9..0b74e323 100644 --- a/src/client/ios/Breakpad.mm +++ b/src/client/ios/Breakpad.mm @@ -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 = |