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
Родитель 76b7359cd1
Коммит cf45da4313
4 изменённых файлов: 4 добавлений и 35 удалений

Просмотреть файл

@ -1,32 +0,0 @@
#!nmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH=..\..\..\..
XPIDLSRCS = .\nsIDOMSerializer.idl \
.\nsIXMLHttpRequest.idl \
.\nsIDOMParser.idl \
$(NULL)
MODULE=xmlsoap
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>