From 56e392d757bd954e4465afb86b0cc358cafa66ac Mon Sep 17 00:00:00 2001 From: Mike Kristoffersen Date: Wed, 3 Nov 2010 14:02:33 +0100 Subject: [PATCH] Bug 575658 - [e10s] TabChild::ParamsToArrays string optimization r=doug.turner a=approval2.0 --- dom/ipc/TabChild.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dom/ipc/TabChild.cpp b/dom/ipc/TabChild.cpp index 19a0a25420b..98e0d2d1345 100644 --- a/dom/ipc/TabChild.cpp +++ b/dom/ipc/TabChild.cpp @@ -413,9 +413,8 @@ TabChild::ParamsToArrays(nsIDialogParamBlock* aParams, aIntParams.AppendElement(val); } PRInt32 j = 0; - PRUnichar* str = nsnull; - while (NS_SUCCEEDED(aParams->GetString(j, &str))) { - nsAdoptingString strVal(str); + nsXPIDLString strVal; + while (NS_SUCCEEDED(aParams->GetString(j, getter_Copies(strVal)))) { aStringParams.AppendElement(strVal); ++j; }