зеркало из https://github.com/mozilla/pjs.git
Fixing runtime bustage from missing addref
This commit is contained in:
Родитель
397549f842
Коммит
70b6682c31
|
@ -626,6 +626,8 @@ nsPresContext::Init(nsIDeviceContext* aDeviceContext)
|
|||
if (!mEventManager)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
NS_ADDREF(mEventManager);
|
||||
|
||||
rv = mEventManager->Init();
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
|
|
@ -626,6 +626,8 @@ nsPresContext::Init(nsIDeviceContext* aDeviceContext)
|
|||
if (!mEventManager)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
NS_ADDREF(mEventManager);
|
||||
|
||||
rv = mEventManager->Init();
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче