]> git.sesse.net Git - vlc/commit
Win32: use linked_with_a_crap_library_which_uses_atexit() (libxml2 and libqt4)
authorErwan Tulou <erwan10@videolan.org>
Mon, 22 Feb 2010 20:55:16 +0000 (21:55 +0100)
committerErwan Tulou <erwan10@videolan.org>
Wed, 24 Feb 2010 20:29:19 +0000 (21:29 +0100)
commit2bac8977d8c2d8877dc0c0df7bc635a6dc5cbdf4
treec19af2272ca73b45353566c2ee4938b2b4289a98
parent9e36c6f4da525cdf1fcba3fbe3421a5a0e958ab6
Win32: use linked_with_a_crap_library_which_uses_atexit() (libxml2 and libqt4)

  On windows,
  - libxml2 spawns a 'watchdog' thread, when statically linked.
  - libqt4 spawns a 'watcher' thread.

  These threads clean up remaining ressources once their initiator thread has
  terminated. So, the associated dll must NOT be freed explicitly and blindly.
  Since there is no means to know when these 'cleanup' threads terminate,
  the safe approach is to not free the dlls and let freeing occur when vlc
  terminates.
modules/gui/qt4/qt4.cpp
modules/misc/xml/libxml.c