Bug 906152 - use StaticRefPtr in DataChannel.cpp to avoid a static constructor; r=jduell

This commit is contained in:
Nathan Froyd 2013-08-16 15:13:08 -04:00
parent c25e61d121
commit a94c411a49

View File

@ -38,6 +38,7 @@
#include "nsThreadUtils.h"
#include "nsAutoPtr.h"
#include "nsNetUtil.h"
#include "mozilla/StaticPtr.h"
#ifdef MOZ_PEERCONNECTION
#include "mtransport/runnable_utils.h"
#endif
@ -78,7 +79,7 @@ static bool sctp_initialized;
namespace mozilla {
class DataChannelShutdown;
nsRefPtr<DataChannelShutdown> gDataChannelShutdown;
StaticRefPtr<DataChannelShutdown> gDataChannelShutdown;
class DataChannelShutdown : public nsIObserver
{