mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Fix for crash when loading New Layer
This commit is contained in:
parent
66fc92cb28
commit
17d4bfbd42
@ -604,8 +604,6 @@ nsresult nsCalendarContainer::LoadURL(const nsString& aURLSpec,
|
||||
pLayer->Init();
|
||||
pLayer->SetCurl(theURL.GetCurl());
|
||||
caluser->SetLayer(pLayer);
|
||||
NS_RELEASE(pLayer);
|
||||
|
||||
|
||||
/*
|
||||
* Begin a calendar for the logged in user...
|
||||
@ -614,6 +612,7 @@ nsresult nsCalendarContainer::LoadURL(const nsString& aURLSpec,
|
||||
NSCalendar * pCalendar;
|
||||
|
||||
pLayer->GetCal(pCalendar);
|
||||
NS_RELEASE(pLayer);
|
||||
|
||||
switch(theURL.GetProtocol())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user