Changeset 1944 for trunk/eraser6


Ignore:
Timestamp:
04/24/10 08:45:35 (5 years ago)
Author:
lowjoel
Message:

When exiting the program, always dispose the MainForm? since if we are calling Application.Run without passing in the form, the top level form will not have Dispose() called, which may leave unused handles lying around. Fixes #356.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser/Program.GuiProgram.cs

    r1845 r1944  
    367367                if (ExitInstance != null) 
    368368                    ExitInstance(sender, e); 
     369 
     370                if (!MainForm.Disposing) 
     371                    MainForm.Dispose(); 
    369372            } 
    370373            #endregion 
Note: See TracChangeset for help on using the changeset viewer.