[vlc-devel] [PATCH] fix memory leak in video_output on Mac OS X

Naohiro KORIYAMA nkoriyama at gmail.com
Tue Feb 28 02:56:48 CET 2012


Hello,

I recently created codec for ISDB(ARIB) subtitles, and tested it on
several platforms (Windows/Mac OS X/Linux).
During developing it,  huge memory leaks happened only on Mac OS X.
After some investigations, subpicture was not deleted only on Mac (in
video_output/macosx.m)
This memory leaks happen regardless having subtitles or not.

leaks(1) command helps me a lot :-)
https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/leaks.1.html

The following logs are generated by leaks command with same video and
same playing time(6m30s)
Fixed log:
http://dl.dropbox.com/u/7574919/vlc/leak_fixed.log
Latest nightly builds log:
http://dl.dropbox.com/u/7574919/vlc/leak_nightly.log

Best regards,

-- 
KORIYAMA, Naohiro
nkoriyama at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-memory-leak-in-video_output-on-Mac-OS-X.patch
Type: application/octet-stream
Size: 910 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120228/bb9a0bd8/attachment.obj>


More information about the vlc-devel mailing list