diff options
author | Next Turn <45985406+NextTurn@users.noreply.github.com> | 2019-05-01 02:38:18 +0800 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-04-30 11:38:18 -0700 |
commit | bb83fe67e0027d93c0d04d921163efa0e414b047 (patch) | |
tree | 596c53b02478c704fe93ae5ae3c531b4b05f6e68 /src/coreclr | |
parent | 5f7d459bf1a23f7e773c56eb5ef5425505b8eb0a (diff) | |
download | coreclr-bb83fe67e0027d93c0d04d921163efa0e414b047.tar.gz coreclr-bb83fe67e0027d93c0d04d921163efa0e414b047.tar.bz2 coreclr-bb83fe67e0027d93c0d04d921163efa0e414b047.zip |
Remove FreeLibrary call to unload CoreCLR (#24317)
Diffstat (limited to 'src/coreclr')
-rw-r--r-- | src/coreclr/hosts/coreconsole/coreconsole.cpp | 9 | ||||
-rw-r--r-- | src/coreclr/hosts/corerun/corerun.cpp | 9 |
2 files changed, 0 insertions, 18 deletions
diff --git a/src/coreclr/hosts/coreconsole/coreconsole.cpp b/src/coreclr/hosts/coreconsole/coreconsole.cpp index e3813d49b3..a321f8b9a5 100644 --- a/src/coreclr/hosts/coreconsole/coreconsole.cpp +++ b/src/coreclr/hosts/coreconsole/coreconsole.cpp @@ -176,15 +176,6 @@ public: } } - ~HostEnvironment() { - if(m_coreCLRModule) { - // Free the module. This is done for completeness, but in fact CoreCLR.dll - // was pinned earlier so this call won't actually free it. The pinning is - // done because CoreCLR does not support unloading. - ::FreeLibrary(m_coreCLRModule); - } - } - bool TPAListContainsFile(_In_z_ wchar_t* fileNameWithoutExtension, _In_reads_(countExtensions) const wchar_t** rgTPAExtensions, int countExtensions) { if (!m_tpaList.CStr()) return false; diff --git a/src/coreclr/hosts/corerun/corerun.cpp b/src/coreclr/hosts/corerun/corerun.cpp index e1864c81f7..4f06da7c1c 100644 --- a/src/coreclr/hosts/corerun/corerun.cpp +++ b/src/coreclr/hosts/corerun/corerun.cpp @@ -152,15 +152,6 @@ public: } } - ~HostEnvironment() { - if(m_coreCLRModule) { - // Free the module. This is done for completeness, but in fact CoreCLR.dll - // was pinned earlier so this call won't actually free it. The pinning is - // done because CoreCLR does not support unloading. - ::FreeLibrary(m_coreCLRModule); - } - } - bool TPAListContainsFile(_In_z_ wchar_t* fileNameWithoutExtension, _In_reads_(countExtensions) const wchar_t** rgTPAExtensions, int countExtensions) { if (m_tpaList.IsEmpty()) return false; |