Bug 57764. Call UnregisterDataSource() in dtor. r=rjc, sr=alecf

git-svn-id: svn://10.0.0.236/trunk@235704 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com 2007-09-12 17:48:29 +00:00
parent 0570976a7a
commit ab57f747fd

View File

@ -1594,6 +1594,11 @@ nsBookmarksService::~nsBookmarksService()
mTimer->Cancel();
mTimer = nsnull;
}
// Unregister ourselves from the RDF service
if (gRDF)
gRDF->UnregisterDataSource(this);
// Note: can't flush in the DTOR, as the RDF service
// has probably already been destroyed
// Flush();