Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit ab76e522ff4da7c5dc945a976ba7f85c2b1f3285 1 parent 02d6b51
@jaketmp jaketmp authored
View
4 JTPepub/JTPepub.m
@@ -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;
View
4 epub.xcodeproj/xcshareddata/xcschemes/qlmanage.xcscheme
@@ -81,7 +81,7 @@
</CommandLineArgument>
<CommandLineArgument
argument = "&quot;$(SRCROOT)/EpubTests/Untitled.epub&quot;"
- isEnabled = "NO">
+ isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "&quot;$(SRCROOT)/EpubTests/9780316000000_MobyDick_r2.epub&quot;"
@@ -89,7 +89,7 @@
</CommandLineArgument>
<CommandLineArgument
argument = "&quot;$(SRCROOT)/EpubTests/metadata.epub&quot;"
- isEnabled = "YES">
+ isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "&quot;$(SRCROOT)/EpubTests/test.ibooks&quot;"
Please sign in to comment.
Something went wrong with that request. Please try again.