mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 1125940 - File should not unlink FileImpl, r=khuey
This commit is contained in:
parent
b155c873e1
commit
1db2f31a2f
@ -129,14 +129,11 @@ nsresult DataOwnerAdapter::Create(DataOwner* aDataOwner,
|
||||
NS_IMPL_CYCLE_COLLECTION_CLASS(File)
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(File)
|
||||
// No unlink for mImpl bacause FileImpl is not CC-able.
|
||||
tmp->mImpl = nullptr;
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK(mParent)
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(File)
|
||||
// No traverse for mImpl bacause FileImpl is not CC-able.
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mParent)
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
|
||||
|
Loading…
Reference in New Issue
Block a user