Fixed leak of weak reference (thanks beard@netscape.com). Fixed makefiles to avoid overwriting xpt files. This is not part of the regular build

This commit is contained in:
vidur%netscape.com 2000-07-31 16:48:54 +00:00
parent 176979235b
commit 93d9a6d167
4 changed files with 5 additions and 4 deletions

View File

@ -26,7 +26,7 @@ XPIDLSRCS = .\nsIDOMSerializer.idl \
.\nsIDOMParser.idl \
$(NULL)
MODULE=xmlsoap
MODULE=xmlextras
include <$(DEPTH)\config\rules.mak>

View File

@ -946,7 +946,8 @@ nsXMLHttpRequest::Send(nsISupports *body)
// Register as a load listener on the document
nsCOMPtr<nsIDOMEventReceiver> target = do_QueryInterface(mDocument);
if (target) {
nsLoadListenerProxy* proxy = new nsLoadListenerProxy(NS_GetWeakReference(NS_STATIC_CAST(nsIXMLHttpRequest*, this)));
nsWeakPtr requestWeak = getter_AddRefs(NS_GetWeakReference(NS_STATIC_CAST(nsIXMLHttpRequest*, this)));
nsLoadListenerProxy* proxy = new nsLoadListenerProxy(requestWeak);
if (!proxy) return NS_ERROR_OUT_OF_MEMORY;
// This will addref the proxy

View File

@ -26,7 +26,7 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = xmlextras
MODULE = xmlsoap
XPIDLSRCS = \
nsISOAPCall.idl \

View File

@ -31,7 +31,7 @@ XPIDLSRCS = .\nsISOAPCall.idl \
.\nsISOAPTransportListener.idl \
$(NULL)
MODULE=xmlextras
MODULE=xmlsoap
include <$(DEPTH)\config\rules.mak>