mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 421202 nsHTTPIndex should be cycle collected r=sayrer a=dsicore
This commit is contained in:
parent
364f6a78bf
commit
962dee4160
@ -115,14 +115,20 @@ static const char kGopherProtocol[] = "gopher://";
|
||||
//
|
||||
|
||||
#ifdef MOZ_RDF
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS7(nsHTTPIndex,
|
||||
nsIHTTPIndex,
|
||||
nsIRDFDataSource,
|
||||
nsIStreamListener,
|
||||
nsIDirIndexListener,
|
||||
nsIRequestObserver,
|
||||
nsIInterfaceRequestor,
|
||||
nsIFTPEventSink)
|
||||
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(nsHTTPIndex)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIHTTPIndex)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIRDFDataSource)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIStreamListener)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIDirIndexListener)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIRequestObserver)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIInterfaceRequestor)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIFTPEventSink)
|
||||
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIHTTPIndex)
|
||||
NS_INTERFACE_MAP_END
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_1(nsHTTPIndex, mInner)
|
||||
NS_IMPL_CYCLE_COLLECTING_ADDREF_AMBIGUOUS(nsHTTPIndex, nsIHttpIndex)
|
||||
NS_IMPL_CYCLE_COLLECTING_RELEASE_AMBIGUOUS(nsHTTPIndex, nsIHttpIndex)
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTTPIndex::GetInterface(const nsIID &anIID, void **aResult )
|
||||
|
@ -55,6 +55,7 @@
|
||||
#include "nsXPIDLString.h"
|
||||
#include "nsIDirIndexListener.h"
|
||||
#include "nsIFTPChannel.h"
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
|
||||
class nsDirectoryViewerFactory : public nsIDocumentLoaderFactory
|
||||
{
|
||||
@ -145,7 +146,8 @@ public:
|
||||
NS_DECL_NSIFTPEVENTSINK
|
||||
|
||||
// nsISupports interface
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
NS_DECL_CYCLE_COLLECTION_CLASS_AMBIGUOUS(nsHTTPIndex, nsIHTTPIndex)
|
||||
};
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user