[WCF] fix another use of XmlBinaryWriter that closes stream and accesses it later.
authorAtsushi Eno <atsushieno@gmail.com>
Thu, 16 Apr 2015 18:01:13 +0000 (03:01 +0900)
committerAtsushi Eno <atsushieno@gmail.com>
Fri, 24 Apr 2015 05:36:57 +0000 (14:36 +0900)
mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/XmlSyndicationContent.cs

index bc268c4c669fc2c7e28eccf0d42f4853d34badb6..b380fd834ad074115d7a09271b23ccbb492db52c 100644 (file)
@@ -95,7 +95,7 @@ namespace System.ServiceModel.Syndication
                                if (!(r is XmlDictionaryReader))
                                        r = XmlDictionaryReader.CreateDictionaryReader (r);
                                var ms = new MemoryStream ();
-                               var xw = XmlDictionaryWriter.CreateBinaryWriter (ms);
+                               var xw = XmlDictionaryWriter.CreateBinaryWriter (ms, null, null, false);
                                xw.WriteStartElement ("content", Namespaces.Atom10);
                                xw.WriteAttributeString ("type", "text/xml");
                                while (!r.EOF)