mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
Bug 906152 - use StaticRefPtr in DataChannel.cpp to avoid a static constructor; r=jduell
This commit is contained in:
parent
a928ea6f0d
commit
678f5a412b
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user