[Bbs2ch-cvs 82] CVS update: bbs2chreader/components

アーカイブの一覧に戻る

flyson flyso****@users*****
2005年 12月 27日 (火) 19:47:47 JST


Index: bbs2chreader/components/nsBbs2chChannel.js
diff -u bbs2chreader/components/nsBbs2chChannel.js:1.6 bbs2chreader/components/nsBbs2chChannel.js:1.7
--- bbs2chreader/components/nsBbs2chChannel.js:1.6	Sat Nov  5 02:01:12 2005
+++ bbs2chreader/components/nsBbs2chChannel.js	Tue Dec 27 19:47:47 2005
@@ -118,22 +118,20 @@
 
 		this._observer = aObserver;
 		this._isPending = true;
-		this._dataSize = 0;
 	},
 
 	requestStart: function(){
 		this._stringStream = Components.classes["@mozilla.org/io/string-input-stream;1"]
 					.createInstance(Components.interfaces.nsIStringInputStream);
-		this._dataSize = 0;
+		this._currentSize = 0;
 		this._streamListener.onStartRequest(this, this._context);
 	},
 
 	requestRespond: function(aData, aDataLength){
 		this._stringStream.setData(aData, aDataLength);
 		this._streamListener.onDataAvailable(this, this._context,
-					this._stringStream, this._dataSize, aDataLength);
-
-		this._dataSize += aDataLength;
+					this._stringStream, this._currentSize, aDataLength);
+		this._currentSize += aDataLength;
 	},
 
 	requestEnd: function(){
@@ -143,6 +141,12 @@
 				this.loadGroup.removeRequest(this, null, Components.results.NS_OK);
 			}catch(ex){}
 		}
+		this._stringStream.close();
+		this._stringStream = null;
+		this._streamListener = null;
+		this._context = null;
+		this._observer = null;
+		this.notificationCallbacks = null;
 		this._isPending = false;
 	}
 


bbs2ch-cvs メーリングリストの案内
アーカイブの一覧に戻る