[Mono-devel-list] [PATCH] problem in System.Xml.XmlTextReader.cs

Atsushi Eno atsushi at ximian.com
Sun Jan 11 04:27:01 EST 2004


Hello,

It should be added when I removed XmlParserInput from XmlTextReader. 
Please go ahead.

Thanks,
Atsushi Eno

Eran Domb wrote:

> Hello,
> I think there is a problem in Close () method. It is not closing the 
> underlying stream.
> 
> Attached is a diff file.
> If no one objects I will commit.
> 
> Thanks,
> Eran.
> 
> 
> ------------------------------------------------------------------------
> 
> Index: XmlTextReader.cs
> ===================================================================
> RCS file: /cvs/public/mcs/class/System.XML/System.Xml/XmlTextReader.cs,v
> retrieving revision 1.102
> diff -u -r1.102 XmlTextReader.cs
> --- XmlTextReader.cs	7 Jan 2004 14:46:43 -0000	1.102
> +++ XmlTextReader.cs	11 Jan 2004 08:15:17 -0000
> @@ -314,6 +314,8 @@
>  			cursorToken.Clear ();
>  			currentToken.Clear ();
>  			attributeCount = 0;
> +			if (reader != null)
> +				reader.Close();
>  		}
>  
>  		public override string GetAttribute (int i)





More information about the Mono-devel-list mailing list