Permalink
Browse files

Fixed two possible leaks [thanks to RISCfuture].

  • Loading branch information...
1 parent 5716d5e commit 71a33b55057fbc778500f2f61d3df6f484b699ff @tomaz committed Sep 25, 2009
Showing with 2 additions and 1 deletion.
  1. +1 −0 DocSetOutputGenerator.m
  2. +1 −1 MarkdownOutputGenerator.m
View
@@ -418,6 +418,7 @@ - (void) createDocSetBundle
[errorDict objectForKey:NSAppleScriptErrorMessage]];
logError(@"Failed installing DocSet to Xcode documentation!");
[Systemator throwExceptionWithName:kTKConverterException withDescription:message];
+ return;
}
[installScript release];
@@ -857,7 +857,7 @@ - (void) appendParagraphToData:(NSMutableData*) data
// non-wrapping phrases as a single words).
if ([phrase length] > 0)
{
- word = [phrase copy];
+ word = [[phrase copy] autorelease];
[phrase setString:@""];
}

0 comments on commit 71a33b5

Please sign in to comment.