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:
yuwu@google.com 2013-07-17 18:31:24 +00:00
parent fce16c1856
commit 437706b60a

View file

@ -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 =