From 8c82e35ad219d8d767c0621889c8f4fb43125edc Mon Sep 17 00:00:00 2001 From: "jband%netscape.com" Date: Wed, 13 Jun 2001 02:16:29 +0000 Subject: [PATCH] fix SunOs bustage with a .get() on AutoMarkingPtr --- js/src/xpconnect/src/xpcwrappednativeproto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/xpconnect/src/xpcwrappednativeproto.cpp b/js/src/xpconnect/src/xpcwrappednativeproto.cpp index 2173e3c555b8..58243a0672c7 100644 --- a/js/src/xpconnect/src/xpcwrappednativeproto.cpp +++ b/js/src/xpconnect/src/xpcwrappednativeproto.cpp @@ -205,7 +205,7 @@ XPCWrappedNativeProto::GetNewOrUsed(XPCCallContext& ccx, if(!proto || !proto->Init(ccx, ScriptableCreateInfo)) { - delete proto; + delete proto.get(); return nsnull; }