Fixed dispose order, bug #1476

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2533 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-03-17 17:14:34 +00:00
commit 68ab243178

View file

@ -79,13 +79,13 @@ namespace Greenshot.Drawing {
/// </summary>
/// <param name="disposing">When disposing==true all non-managed resources should be freed too!</param>
protected override void Dispose(bool disposing) {
base.Dispose(disposing);
if (disposing) {
if (freehandPath != null) {
freehandPath.Dispose();
}
}
freehandPath = null;
base.Dispose(disposing);
}
/// <summary>