nsPipeEvents-stackobject
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 66 4161d51d7ccbb4019a5cb4d18a855094024a52db
permissions -rw-r--r--
State as of now

diff --git a/xpcom/io/nsPipe3.cpp b/xpcom/io/nsPipe3.cpp
--- a/xpcom/io/nsPipe3.cpp
+++ b/xpcom/io/nsPipe3.cpp
@@ -74,7 +74,14 @@ class nsPipeEvents
 class nsPipeEvents
 {
 public:
-    nsPipeEvents() { }
+    nsPipeEvents()
+	: mInputStream(nsnull)
+	, mInputCallback(nsnull)
+	, mOutputStream(nsnull)
+	, mOutputCallback(nsnull)
+    {
+	ASSERT_StackObject(this);
+    }
    ~nsPipeEvents();
 
     inline void NotifyInputReady(nsIAsyncInputStream *stream,
@@ -94,10 +101,10 @@ public:
     }
 
 private:
-    nsCOMPtr<nsIAsyncInputStream>     mInputStream;
-    nsCOMPtr<nsIInputStreamCallback>  mInputCallback;
-    nsCOMPtr<nsIAsyncOutputStream>    mOutputStream;
-    nsCOMPtr<nsIOutputStreamCallback> mOutputCallback;
+    nsIAsyncInputStream*     mInputStream;
+    nsIInputStreamCallback*  mInputCallback;
+    nsIAsyncOutputStream*    mOutputStream;
+    nsIOutputStreamCallback* mOutputCallback;
 };
 
 //-----------------------------------------------------------------------------