mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
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:
parent
176979235b
commit
93d9a6d167
@ -26,7 +26,7 @@ XPIDLSRCS = .\nsIDOMSerializer.idl \
|
||||
.\nsIDOMParser.idl \
|
||||
$(NULL)
|
||||
|
||||
MODULE=xmlsoap
|
||||
MODULE=xmlextras
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
||||
|
@ -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
|
||||
|
@ -26,7 +26,7 @@ VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = xmlextras
|
||||
MODULE = xmlsoap
|
||||
|
||||
XPIDLSRCS = \
|
||||
nsISOAPCall.idl \
|
||||
|
@ -31,7 +31,7 @@ XPIDLSRCS = .\nsISOAPCall.idl \
|
||||
.\nsISOAPTransportListener.idl \
|
||||
$(NULL)
|
||||
|
||||
MODULE=xmlextras
|
||||
MODULE=xmlsoap
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user