diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-01-30 00:18:46 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-01-30 00:18:46 -0500 |
| commit | a5b4ae8b39cabf84ad62871a700dcfdeef562103 (patch) | |
| tree | 93c9e77ee43a77026aa9f5f1f946e11b40d8132b | |
| parent | 792e4c4f1ba3d337cfaffca03e158d95560b3093 (diff) | |
dispose content stream with StaticRemoteStreamWriter
| -rw-r--r-- | MediaBrowser.Api/Playback/StaticRemoteStreamWriter.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/StaticRemoteStreamWriter.cs b/MediaBrowser.Api/Playback/StaticRemoteStreamWriter.cs index ada2a98a1..fc94d070a 100644 --- a/MediaBrowser.Api/Playback/StaticRemoteStreamWriter.cs +++ b/MediaBrowser.Api/Playback/StaticRemoteStreamWriter.cs @@ -40,7 +40,10 @@ namespace MediaBrowser.Api.Playback /// <param name="responseStream">The response stream.</param> public void WriteTo(Stream responseStream) { - _response.Content.CopyTo(responseStream, 819200); + using (_response) + { + _response.Content.CopyTo(responseStream, 819200); + } } } } |
