From bd60d3bec1a5e4109e029f86d12c3bb4d9b0ba94 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Fri, 25 Nov 2011 17:09:07 -0800 Subject: [PATCH] Bug 692342 - Assert !IsArithmetic() rather than IsPointer(). r=mrbkap JSval is the only different between the two, and we handle that above. --- js/xpconnect/src/XPCWrappedNative.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/xpconnect/src/XPCWrappedNative.cpp b/js/xpconnect/src/XPCWrappedNative.cpp index a28b4712e80d..e41bac519dad 100644 --- a/js/xpconnect/src/XPCWrappedNative.cpp +++ b/js/xpconnect/src/XPCWrappedNative.cpp @@ -2855,7 +2855,8 @@ CallMethodHelper::CleanupParam(nsXPTCMiniVariant& param, nsXPTType& type) delete (nsCString*) param.val.p; break; default: - NS_ABORT_IF_FALSE(type.IsPointer(), "Cleanup requested on unexpected type."); + NS_ABORT_IF_FALSE(!type.IsArithmetic(), + "Cleanup requested on unexpected type."); nsMemory::Free(param.val.p); break; }