void SmsRequest::UnrootResult() { NS_ASSERTION(mResultRooted, "Don't call UnrotResult() if not rooted!"); NS_DROP_JS_OBJECTS(this, SmsRequest); mResultRooted = false; }
void IDBRequest::UnrootResultVal() { NS_ASSERTION(mResultValRooted, "This should be true!"); NS_DROP_JS_OBJECTS(this, IDBRequest); mResultValRooted = false; }
void BluetoothDevice::Unroot() { if (mIsRooted) { NS_DROP_JS_OBJECTS(this, BluetoothDevice); mIsRooted = false; } }
IDBCursor::~IDBCursor() { NS_ASSERTION(NS_IsMainThread(), "Wrong thread!"); if (mRooted) { NS_DROP_JS_OBJECTS(this, IDBCursor); } IDBObjectStore::ClearStructuredCloneBuffer(mCloneReadInfo.mCloneBuffer); }
void BluetoothDevice::Unroot() { if (mIsRooted) { mJsUuids = nullptr; mJsServices = nullptr; NS_DROP_JS_OBJECTS(this, BluetoothDevice); mIsRooted = false; } }
Telephony::~Telephony() { if (mRIL && mRILTelephonyCallback) { mRIL->UnregisterTelephonyCallback(mRILTelephonyCallback); } if (mRooted) { mCallsArray = nullptr; NS_DROP_JS_OBJECTS(this, Telephony); } NS_ASSERTION(gTelephonyList, "This should never be null!"); NS_ASSERTION(gTelephonyList->Contains(this), "Should be in the list!"); if (gTelephonyList->Length() == 1) { delete gTelephonyList; gTelephonyList = nullptr; } else { gTelephonyList->RemoveElement(this); } }
Promise::~Promise() { mResult = JSVAL_VOID; NS_DROP_JS_OBJECTS(this, Promise); MOZ_COUNT_DTOR(Promise); }
nsJSEventListener::~nsJSEventListener() { if (mContext) { NS_DROP_JS_OBJECTS(this, nsJSEventListener); } }