mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 00:50:40 +00:00
Made widget observer observe the composite data source.
This commit is contained in:
parent
7b02f128df
commit
f13802c572
@ -215,7 +215,10 @@ static const char kRDFNameSpaceURI[]
|
||||
RDFGenericBuilderImpl::~RDFGenericBuilderImpl(void)
|
||||
{
|
||||
NS_IF_RELEASE(mRoot);
|
||||
NS_IF_RELEASE(mDB);
|
||||
if (mDB) {
|
||||
mDB->RemoveObserver(this);
|
||||
NS_RELEASE(mDB);
|
||||
}
|
||||
// NS_IF_RELEASE(mDocument) not refcounted
|
||||
|
||||
--gRefCnt;
|
||||
@ -304,6 +307,8 @@ RDFGenericBuilderImpl::SetDataBase(nsIRDFCompositeDataSource* aDataBase)
|
||||
|
||||
mDB = aDataBase;
|
||||
NS_ADDREF(mDB);
|
||||
|
||||
mDB->AddObserver(this);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -215,7 +215,10 @@ static const char kRDFNameSpaceURI[]
|
||||
RDFGenericBuilderImpl::~RDFGenericBuilderImpl(void)
|
||||
{
|
||||
NS_IF_RELEASE(mRoot);
|
||||
NS_IF_RELEASE(mDB);
|
||||
if (mDB) {
|
||||
mDB->RemoveObserver(this);
|
||||
NS_RELEASE(mDB);
|
||||
}
|
||||
// NS_IF_RELEASE(mDocument) not refcounted
|
||||
|
||||
--gRefCnt;
|
||||
@ -304,6 +307,8 @@ RDFGenericBuilderImpl::SetDataBase(nsIRDFCompositeDataSource* aDataBase)
|
||||
|
||||
mDB = aDataBase;
|
||||
NS_ADDREF(mDB);
|
||||
|
||||
mDB->AddObserver(this);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -215,7 +215,10 @@ static const char kRDFNameSpaceURI[]
|
||||
RDFGenericBuilderImpl::~RDFGenericBuilderImpl(void)
|
||||
{
|
||||
NS_IF_RELEASE(mRoot);
|
||||
NS_IF_RELEASE(mDB);
|
||||
if (mDB) {
|
||||
mDB->RemoveObserver(this);
|
||||
NS_RELEASE(mDB);
|
||||
}
|
||||
// NS_IF_RELEASE(mDocument) not refcounted
|
||||
|
||||
--gRefCnt;
|
||||
@ -304,6 +307,8 @@ RDFGenericBuilderImpl::SetDataBase(nsIRDFCompositeDataSource* aDataBase)
|
||||
|
||||
mDB = aDataBase;
|
||||
NS_ADDREF(mDB);
|
||||
|
||||
mDB->AddObserver(this);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user