Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ committed Jun 6, 2024
1 parent da2df57 commit ac10ef2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/SQLQueryStress/SqlControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,14 @@ private void SqlControl_OnLoaded(object sender, RoutedEventArgs e)
if (stream == null) return;
using (var reader = new System.Xml.XmlTextReader(stream))
{
stream = null;
AvalonEdit.SyntaxHighlighting =
ICSharpCode.AvalonEdit.Highlighting.Xshd.HighlightingLoader.Load(reader,
ICSharpCode.AvalonEdit.Highlighting.HighlightingManager.Instance);
}
}
finally
{
stream.Dispose();
stream?.Dispose();
}
}
}
Expand Down

0 comments on commit ac10ef2

Please sign in to comment.