mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
* Unregister Mono.Addins event handlers in PluginLoader.Dispose() and always handle PluginLoader with the using pattern. This freed up 121,634,796 bytes on my system
* Avoid allocating an Action<IClientAPI> object every round of the OutgoingPacketHandler * Removed unnecessary semi-colon endings from OpenSim.ini.example [InterestManagement] section
This commit is contained in:
@@ -194,10 +194,15 @@ namespace OpenSim.Framework
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unregisters Mono.Addins event handlers, allowing temporary Mono.Addins
|
||||
/// data to be garbage collected. Since the plugins created by this loader
|
||||
/// are meant to outlive the loader itself, they must be disposed separately
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
foreach (T plugin in Plugins)
|
||||
plugin.Dispose();
|
||||
AddinManager.AddinLoadError -= on_addinloaderror_;
|
||||
AddinManager.AddinLoaded -= on_addinloaded_;
|
||||
}
|
||||
|
||||
private void initialise_plugin_dir_(string dir)
|
||||
|
||||
Reference in New Issue
Block a user