Author: api.jfisher
Date: Wed Dec 19 10:58:52 2007
New Revision: 359
Modified:
trunk/clients/cs/src/gdocuments/documentservice.cs
Log:
Fixed some badness: the FileStream wasn't getting closed after
uploading a document.
Modified: trunk/clients/cs/src/gdocuments/documentservice.cs
==============================================================================
--- trunk/clients/cs/src/gdocuments/documentservice.cs (original)
+++ trunk/clients/cs/src/gdocuments/documentservice.cs Wed Dec 19
10:58:52 2007
@@ -123,7 +123,11 @@
throw new ArgumentException("File extension '"+ext+"'
is not recognized as valid.");
}
- return this.Insert(postUri, stream, contentType,
documentName) as DocumentEntry;
+ DocumentEntry entry = this.Insert(postUri, stream,
contentType, documentName) as DocumentEntry;
+
+ stream.Close();
+
+ return entry;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---