[FFmpeg-devel] missing CloseHandle in avcodec_thread_free in win32 implementation
Michael Niedermayer
michaelni
Mon Sep 24 02:59:33 CEST 2007
Hi
On Sun, Sep 23, 2007 at 04:58:25PM +0400, Alex Sadovsky wrote:
> Hello FFMpeg developers! Thank you for your hard work!
>
> I think I have found a small resource leak in the win32 version of
> avcodec_thread_free(AVCodecContext *).
> According to MSDN you have to manually CloseHandle a thread handle returned
> by _beginthreadex().
> So, every time you do avcodec_open/avcodec_close you loose some valuable
> kernel memory.
patch welcome
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070924/d70358c3/attachment.pgp>
More information about the ffmpeg-devel
mailing list