зеркало из https://github.com/mozilla/pjs.git
Address brendan's review comments on bug 391141. r=brendan a=not part of release builds
This commit is contained in:
Родитель
07fa5e0002
Коммит
781ccc59e4
|
@ -186,18 +186,14 @@ DHWImportHooker::~DHWImportHooker()
|
|||
mHooking = PR_FALSE;
|
||||
PatchAllModules();
|
||||
|
||||
if(gHooks == this)
|
||||
gHooks = mNext;
|
||||
else
|
||||
for (DHWImportHooker **cur = &gHooks;
|
||||
(PR_ASSERT(*cur), *cur); /* assert that we find this */
|
||||
cur = &(*cur)->mNext)
|
||||
{
|
||||
for(DHWImportHooker* cur = gHooks; cur; cur = cur->mNext)
|
||||
if (*cur == this)
|
||||
{
|
||||
if(cur->mNext == this)
|
||||
{
|
||||
cur->mNext = mNext;
|
||||
break;
|
||||
}
|
||||
PR_ASSERT(cur->mNext); //we were not in the list!
|
||||
*cur = mNext;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче