From 10589364d84192ac1721da5718e852d1c6a9e1c1 Mon Sep 17 00:00:00 2001 From: "darin%meer.net" Date: Thu, 6 Jul 2006 18:46:31 +0000 Subject: [PATCH] fixes bug 343731 "###!!! ASSERTION: QueryInterface needed: 'query_result.get() == mRawPtr', file ../../dist/include/xpcom/nsCOMPtr.h, line 594" r=biesi --- xpcom/threads/nsEventQueue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);