Bug 808428 - RuntimeService now calls nsLayoutStatics::AddRef/Release. r=khuey

--HG--
extra : rebase_source : 7bd5b6c7c9ddcb2cb5ec619c18fa1f75c4fb1f15
This commit is contained in:
David Rajchenbach-Teller 2012-11-04 23:30:00 -08:00
parent 012feb0947
commit 6a3d40f2ec

View File

@ -19,6 +19,7 @@
#include "nsISupportsPriority.h"
#include "nsITimer.h"
#include "nsPIDOMWindow.h"
#include "nsLayoutStatics.h"
#include "jsdbgapi.h"
#include "mozilla/dom/EventTargetBinding.h"
@ -1001,6 +1002,7 @@ nsresult
RuntimeService::Init()
{
AssertIsOnMainThread();
nsLayoutStatics::AddRef();
mIdleThreadTimer = do_CreateInstance(NS_TIMER_CONTRACTID);
NS_ENSURE_STATE(mIdleThreadTimer);
@ -1177,6 +1179,7 @@ RuntimeService::Cleanup()
}
CleanupOSFileConstants();
nsLayoutStatics::Release();
}
// static