[libdvdcss-devel] [PATCH] Avoid calling FreeLibrary() twice.
Ivan Kalvachev
ikalvachev at gmail.com
Sat Mar 9 17:34:59 CET 2013
Quite obvious bug in the Windows code path.
FreeLibrary() decreases a per-process reference/usage counter. That
counter is set to 1 when a library is loaded at startup and increased
with each LoadLibrary() call.
Calling FreeLibrary() more times than LoadLibrary() could unload the
library that is loaded at startup and break code that uses that
library functions directly.
This seems to happen with fontconfig package in MPlayer.
The original bug reporter confirmed that crashes go away when the
additional FreeLibrary() is gone. The patch contains a trivial clean
up.
Best Regards.
Ivan Kalvachev
iive
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Avoid-calling-FreeLibrary-twice.patch
Type: text/x-patch
Size: 1056 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/libdvdcss-devel/attachments/20130309/d219f1bf/attachment.bin>
More information about the libdvdcss-devel
mailing list