GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

memory leak in GPUImageCreateResizedSampleBuffer method..

Open donobono opened this issue 14 years ago • 5 comments

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.. :-)

donobono avatar Jul 10 '12 08:07 donobono

Good catch. This should now be fixed in the latest commit.

BradLarson avatar Jul 17 '12 04:07 BradLarson

have you fixed it?

zyslovely avatar Oct 11 '12 06:10 zyslovely

Yes, three months ago. That's why this issue was closed three months ago.

BradLarson avatar Oct 11 '12 14:10 BradLarson

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.

zyslovely avatar Oct 11 '12 14:10 zyslovely

me too,,,

hydyy avatar Jan 27 '16 13:01 hydyy