зеркало из https://github.com/mozilla/pjs.git
Bugzilla Bug 341122: it's not necessary to test slot->slotLock because
slot->slotLock cannot be NULL at that point. The patch is contributed by Ryan Jones <sciguyryan+bugzilla@gmail.com>. r=nelsonb,wtc.
This commit is contained in:
Родитель
493a9afaf0
Коммит
9526c81448
|
@ -2856,10 +2856,8 @@ SFTK_DestroySlotData(SFTKSlot *slot)
|
|||
|
||||
/* OK everything has been disassembled, now we can finally get rid
|
||||
* of the locks */
|
||||
if (slot->slotLock) {
|
||||
PZ_DestroyLock(slot->slotLock);
|
||||
slot->slotLock = NULL;
|
||||
}
|
||||
PZ_DestroyLock(slot->slotLock);
|
||||
slot->slotLock = NULL;
|
||||
if (slot->sessionLock) {
|
||||
for (i=0; i < slot->numSessionLocks; i++) {
|
||||
if (slot->sessionLock[i]) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче