diff --git a/MP42/MP42AVFImporter.m b/MP42/MP42AVFImporter.m index da3a411..099caaf 100644 --- a/MP42/MP42AVFImporter.m +++ b/MP42/MP42AVFImporter.m @@ -1054,6 +1054,7 @@ err = CMSampleBufferGetSampleTimingInfoArray(sampleBuffer, timingArrayEntries, NULL, &timingArrayEntriesNeededOut); if (err) { CFRelease(sampleBuffer); + CFRelease(attachments); continue; } @@ -1063,6 +1064,7 @@ if (err) { free(timingArrayOut); CFRelease(sampleBuffer); + CFRelease(attachments); continue; } @@ -1073,6 +1075,7 @@ if (err) { free(timingArrayOut); CFRelease(sampleBuffer); + CFRelease(attachments); continue; } @@ -1083,6 +1086,7 @@ free(timingArrayOut); free(sizeArrayOut); CFRelease(sampleBuffer); + CFRelease(attachments); continue; }