mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
122314 patch by tingley@sundell.net sr=waterson. decrease the refcnt but not null out rdfService -fixes
future crash on shutdown
This commit is contained in:
parent
38562b4b9f
commit
a91ad55688
@ -403,7 +403,11 @@ public:
|
||||
virtual ~BlobImpl()
|
||||
{
|
||||
gRDFService->UnregisterBlob(this);
|
||||
NS_RELEASE(gRDFService);
|
||||
// Use NS_RELEASE2() here, because we want to decrease the
|
||||
// refcount, but not null out the gRDFService pointer (which is
|
||||
// what a vanilla NS_RELEASE() would do).
|
||||
nsrefcnt refcnt;
|
||||
NS_RELEASE2(gRDFService, refcnt);
|
||||
delete[] mData.mBytes;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user