PDFDocument + Quartz Filter的内存泄漏

Dan*_*iel 5 pdf macos cocoa quartz-graphics ios5

我的应用程序使用石英过滤器将PDF文档中的图像转换为黑白图像:

PDF Document *pdfDocument = [[PDFDocument alloc] initWithURL:[NSURL fileURLWithPath:@"/Users/dan/Desktop/test.pdf"]];

QuartzFilter *quartzFilter = [QuartzFilter quartzFilterWithURL:[[NSBundle mainBundle] URLForResource:@"Black & White" withExtension:@"qfilter"]];

NSDictionary *options = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:quartzFilter, nil] forKeys:[NSArray arrayWithObjects:@"QuartzFilter", nil]];

[pdfDocument writeToFile:@"/Users/dan/Desktop/testResault.pdf" withOptions:options];
Run Code Online (Sandbox Code Playgroud)

不幸的是,在应用过滤器的情况下将文件写入磁盘会导致许多内存泄漏,如下所示: 在此输入图像描述

这是Quartz Framework中的一个错误,还是我在上面的代码中做错了什么?

如果你想,你可以在这里下载我的测试项目:http://www.file-upload.net/download-7293644/PDF---Quartz-Memory-Leak.zip.html

我正在使用ARC.