@@ -96,6 +96,7 @@ int encode_amr(const char* infile, const char* outfile) {
amr = Encoder_Interface_init(0);
out = fopen(outfile, "wb");
if (!out) {
+ free(inputBuf);
perror(outfile);
return 1;
}
@@ -179,6 +179,7 @@
CTFrameRef frame = CTFramesetterCreateFrame(framesetter, CFRangeMake(0, [self.attributedText length]), path, NULL);
if (frame == NULL) {
+ CFRelease(framesetter);
CFRelease(path);
return NSNotFound;
@@ -190,6 +191,7 @@
//NSLog(@"num lines: %d", numberOfLines);
if (numberOfLines == 0) {
CFRelease(frame);
@@ -231,6 +233,7 @@
@@ -76,6 +76,7 @@ static NSString* const dnAssetsViewCellReuseIdentifier = @"DNAssetsViewCell";
- (void)viewWillDisappear:(BOOL)animated {
+ [super viewWillDisappear:animated];
self.navigationController.toolbarHidden = YES;
[[NSNotificationCenter defaultCenter] removeObserver:self];