зеркало из https://github.com/mozilla/pjs.git
Fixing orange.
This commit is contained in:
Родитель
bb5d08fb0b
Коммит
b3c64cb4a7
|
@ -60,6 +60,18 @@ XPCCallContext::XPCCallContext(XPCContext::LangType callerLanguage,
|
||||||
mCallerLanguage(callerLanguage),
|
mCallerLanguage(callerLanguage),
|
||||||
mCallee(nsnull)
|
mCallee(nsnull)
|
||||||
{
|
{
|
||||||
|
// Mark our internal string wrappers as not used. Make sure we do
|
||||||
|
// this before any early returns, as the destructor will assert
|
||||||
|
// based on this.
|
||||||
|
StringWrapperEntry *se =
|
||||||
|
reinterpret_cast<StringWrapperEntry*>(&mStringWrapperData);
|
||||||
|
|
||||||
|
PRUint32 i;
|
||||||
|
for(i = 0; i < XPCCCX_STRING_CACHE_SIZE; ++i)
|
||||||
|
{
|
||||||
|
se[i].mInUse = PR_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if(!mXPC)
|
if(!mXPC)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -163,16 +175,6 @@ XPCCallContext::XPCCallContext(XPCContext::LangType callerLanguage,
|
||||||
SetArgsAndResultPtr(argc, argv, rval);
|
SetArgsAndResultPtr(argc, argv, rval);
|
||||||
|
|
||||||
CHECK_STATE(HAVE_OBJECT);
|
CHECK_STATE(HAVE_OBJECT);
|
||||||
|
|
||||||
// Mark our internal string wrappers as not used.
|
|
||||||
StringWrapperEntry *se =
|
|
||||||
reinterpret_cast<StringWrapperEntry*>(&mStringWrapperData);
|
|
||||||
|
|
||||||
PRUint32 i;
|
|
||||||
for(i = 0; i < XPCCCX_STRING_CACHE_SIZE; ++i)
|
|
||||||
{
|
|
||||||
se[i].mInUse = PR_FALSE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Загрузка…
Ссылка в новой задаче