Permalink
Browse files

Plugged a couple of leaks suggested by clang - tests still pass.

  • Loading branch information...
1 parent 02d6b51 commit ab76e522ff4da7c5dc945a976ba7f85c2b1f3285 @jaketmp jaketmp committed Mar 12, 2012
Showing with 6 additions and 2 deletions.
  1. +4 −0 JTPepub/JTPepub.m
  2. +2 −2 epub.xcodeproj/xcshareddata/xcschemes/qlmanage.xcscheme
View
@@ -80,10 +80,13 @@ - (BOOL)openEPUBFile:(NSString*)fileName {
} else {
// Not a format we understand.
bookType = jtpUnknownBook;
+ [mimetype release];
//[epubFile release]; - We release this when we fail to init and call [self release].
return NO;
}
+ [mimetype release];
+
// Read the container.xml to find the root file.
NSData *container = [epubFile dataForNamedFile:@"META-INF/container.xml"];
@@ -517,6 +520,7 @@ - (NSImage *)cover
//Extract and resize image
cover = [[NSImage alloc] initWithData:coverData];
+ [coverData release];
haveCheckedForCover= YES;
@@ -81,15 +81,15 @@
</CommandLineArgument>
<CommandLineArgument
argument = "&quot;$(SRCROOT)/EpubTests/Untitled.epub&quot;"
- isEnabled = "NO">
+ isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "&quot;$(SRCROOT)/EpubTests/9780316000000_MobyDick_r2.epub&quot;"
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "&quot;$(SRCROOT)/EpubTests/metadata.epub&quot;"
- isEnabled = "YES">
+ isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "&quot;$(SRCROOT)/EpubTests/test.ibooks&quot;"

0 comments on commit ab76e52

Please sign in to comment.