[vlc-devel] [PATCH] use NSAutoreleasePool::drain instead of NSAutorelease::release

Toralf Niebuhr gmthor85 at aim.com
Thu Jul 22 12:09:06 CEST 2010


After running the Mac OS X static analyses I produced this patch. The patch only replaces NSAutoreleasePool:release with NSAutoreleasePool::drain.

In a non garbage collected program, those functions do the same thing and in a program with GC it does the right thing. See
http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Classes/NSAutoreleasePool_Class/Reference/Reference.html

There are two more potential problems that the static analyses found. I am not sure what to do about them. The results are here:
www.niebuhrt.de/scan-results/index.html

Toralf Niebuhr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-use-NSAutoreleasePool-drain-instead-of-NSAutorelease.patch
Type: application/octet-stream
Size: 8429 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100722/d5d62a78/attachment.obj>


More information about the vlc-devel mailing list