memory leak in GPUImageCreateResizedSampleBuffer method..
I found a leak in GPUImageCreateResizedSampleBuffer method of GPUImageStillCamera class with leaks tool.. You commented CFRelease(videoInfo); line of the end of that method, but it looks to make a leak. After I uncommented CFRelease(videoInfo); and tried to test, there was no leak..
I wonder it makes another problem or not. Please check this issue..
Thank you for sharing your great and awesome source.. :-)
Good catch. This should now be fixed in the latest commit.
have you fixed it?
Yes, three months ago. That's why this issue was closed three months ago.
I use GPUImage as a live filter.But I always get receive memory warning when i execute the method(take photo and generate image )
- (IBAction)takePhotoAction:(id)sender{ [sender setEnabled:NO]; if (!isStatic) { [_cropFilter prepareForImageCapture]; [_stillCamera capturePhotoAsImageProcessedUpToFilter:_cropFilter withCompletionHandler:^(UIImage *processed, NSError *error) {
and i use memory_report find this method in GPUImageFilter.m
-
(UIImage *)imageFromCurrentlyProcessedOutputWithOrientation:(UIImageOrientation)imageOrientation; { NSLog(@"report"); [self report_memory]; CGImageRef cgImageFromBytes = [self newCGImageFromCurrentlyProcessedOutputWithOrientation:imageOrientation];
CGImageRef cgImageFromBytes = [self newCGImageFromCurrentlyProcessedOutputWithOrientation:imageOrientation]; it take many memory.
me too,,,