From: Lars Op den Kamp Date: Mon, 27 Feb 2012 22:35:00 +0000 (+0100) Subject: cec: just dlclose()/FreeLibrary() after starting the bootloader X-Git-Tag: upstream/2.2.0~1^2~33^2~13 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1326720871f96061b21399a34bf1ad1178d98a9a;p=deb_libcec.git cec: just dlclose()/FreeLibrary() after starting the bootloader --- diff --git a/include/cecloader.h b/include/cecloader.h index 1b0be87..5d4361d 100644 --- a/include/cecloader.h +++ b/include/cecloader.h @@ -134,7 +134,8 @@ bool LibCecBootloader(const char *strLib = NULL) return false; bool bReturn = LibCecBootloader(); - UnloadLibCec(static_cast< CEC::ICECAdapter* > g_libCEC); + FreeLibrary(g_libCEC); + g_libCEC = NULL; return bReturn; } @@ -267,7 +268,7 @@ bool LibCecBootloader(const char *strLib = NULL) } bool bReturn = LibCecBootloader(); - UnloadLibCec((CEC::ICECAdapter*)g_libCEC); + dlclose(g_libCEC); return bReturn; }