Bug 997908 - Add null check to ReleaseSliceNow() as bandaid for Mac topcrasher. r=smaug

This commit is contained in:
Steven Michaud 2014-04-24 11:46:39 -05:00
parent 1cbc91a8da
commit 3164e19fdc

View File

@ -1005,7 +1005,7 @@ ReleaseSliceNow(uint32_t aSlice, void* aData)
nsISupports* wrapper = items->ElementAt(lastItemIdx);
items->RemoveElementAt(lastItemIdx);
NS_RELEASE(wrapper);
NS_IF_RELEASE(wrapper);
}
return items->IsEmpty();