diff --git a/xpcom/threads/nsEventQueue.cpp b/xpcom/threads/nsEventQueue.cpp index 9d294fc7121..16e0e9e0b87 100644 --- a/xpcom/threads/nsEventQueue.cpp +++ b/xpcom/threads/nsEventQueue.cpp @@ -38,7 +38,7 @@ #include "nsEventQueue.h" #include "nsAutoLock.h" -#include "nsCOMPtr.h" +#include "nsAutoPtr.h" #include "prlog.h" #ifdef PR_LOGGING @@ -96,7 +96,7 @@ PRBool nsEventQueue::PutEvent(nsIRunnable *runnable) { // Avoid calling AddRef+Release while holding our monitor. - nsCOMPtr event(runnable); + nsRefPtr event(runnable); PRBool rv = PR_TRUE; { nsAutoMonitor mon(mMonitor);