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:
naving%netscape.com 2002-01-29 21:04:03 +00:00
parent 38562b4b9f
commit a91ad55688

View File

@ -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;
}