Changeset 1897


Ignore:
Timestamp:
Sep 2, 2010, 4:45:11 PM (11 years ago)
Author:
kopal
Message:

better stream closed :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/Model/TextModel.cs

    r1895 r1897  
    5454            TextRange textRange = new TextRange(flowDocument.ContentStart, flowDocument.ContentEnd);
    5555            textRange.Load(memoryStream, System.Windows.DataFormats.XamlPackage);
    56             rtb.Document = flowDocument;           
     56            rtb.Document = flowDocument;
     57            memoryStream.Close();
    5758        }
    5859
Note: See TracChangeset for help on using the changeset viewer.