This commit is contained in:
spider%netscape.com 1998-10-22 02:21:21 +00:00
Родитель 7529bfb101
Коммит 796462c9fc
3 изменённых файлов: 14 добавлений и 1 удалений

Просмотреть файл

@ -97,6 +97,8 @@ NS_IMPL_RELEASE(nsCalendarModel)
nsCalendarModel::~nsCalendarModel()
{
// XXX
#if 0
nsIXPFCObserverManager* om;
nsServiceManager::GetService(kCXPFCObserverManagerCID, kIXPFCObserverManagerIID, (nsISupports**)&om);
@ -104,7 +106,7 @@ nsCalendarModel::~nsCalendarModel()
nsresult res = om->Unregister((nsISupports *)(void*)this);
nsServiceManager::ReleaseService(kCXPFCObserverManagerCID, om);
#endif
mCalendarUser = nsnull; // Do Not Release
}

Просмотреть файл

@ -75,6 +75,15 @@ NS_IMPL_RELEASE(nsLayerCollection)
nsLayerCollection::~nsLayerCollection()
{
// XXX: Need to add a way to remove ref when delete all!
nsILayer * pLayer;
while (mLayers->Count() > 0 )
{
pLayer = (nsILayer*)mLayers->ElementAt(0);
RemoveLayer(pLayer);
mLayers->RemoveAt(0);
}
NS_IF_RELEASE(mLayers);
}
@ -198,6 +207,7 @@ nsresult nsLayerCollection::SetCurl(const JulianString& sC)
pLayer->Init();
pLayer->SetCurl(s);
AddLayer(pLayer);
NS_RELEASE(pLayer);
}
return (NS_OK);
}

Просмотреть файл

@ -213,6 +213,7 @@ nsresult nsCalendarContainer::Init(nsIWidget * aParent,
//mRootCanvas->SetVisibility(PR_FALSE);
((nsBoxLayout *)(mRootCanvas->GetLayout()))->SetLayoutAlignment(eLayoutAlignment_vertical);
NS_RELEASE(calmodel);
}