1 parent 1b0bfa8 commit 0982a99Copy full SHA for 0982a99
1 file changed
src/DllManipulator.cs
@@ -153,6 +153,11 @@ public static void UnloadAll()
153
dll.loadingError = false;
154
dll.symbolError = false;
155
156
+ foreach(var func in dll.functions)
157
+ {
158
+ func.@delegate = null;
159
+ }
160
+
161
if(!success)
162
{
163
Debug.LogWarning($"Error while unloading DLL \"{dll.name}\" at path \"{dll.path}\"");
@@ -440,4 +445,4 @@ public enum LinuxDlopenFlags : int
440
445
Lazy_Global = 0x00100 | Lazy,
441
446
Now_Global = 0x00100 | Now
442
447
}
443
-}
448
+}
0 commit comments