On 7/24/12 6:54 AM, justSomeGuy wrote:
   MyListener *myListener = new MyListener;
   rv = traceableChannel->SetNewListener(myListener, 
getter_AddRefs(myListener->mListener)); //I put the nsCOMPtr<nsIStreamListener> 
mListener; into the implementation of nsIStreamListener

As a side note, this seems to pass in myListener when it has a 0 refcount, which seems like a really bad idea. myListener should be an nsCOMPtr.

Your MyListener class implements QueryInterface to nsIStreamListener and nsIRequestObserver?

-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to