Changeset 571


Ignore:
Timestamp:
11/14/2008 2:32:04 PM (5 years ago)
Author:
lowjoel
Message:

Don't dispose plugins that were never loaded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Manager/Plugins.cs

    r569 r571  
    136136            //the cleanup code. 
    137137            foreach (PluginInstance plugin in plugins) 
    138                 plugin.Plugin.Dispose(); 
     138                if (plugin.Plugin != null) 
     139                    plugin.Plugin.Dispose(); 
    139140        } 
    140141 
Note: See TracChangeset for help on using the changeset viewer.