fixes bug 343731 "###!!! ASSERTION: QueryInterface needed: 'query_result.get() == mRawPtr', file ../../dist/include/xpcom/nsCOMPtr.h, line 594" r=biesi

This commit is contained in:
darin%meer.net 2006-07-06 18:46:31 +00:00
Родитель 0b13b257bb
Коммит 10589364d8
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -38,7 +38,7 @@
#include "nsEventQueue.h" #include "nsEventQueue.h"
#include "nsAutoLock.h" #include "nsAutoLock.h"
#include "nsCOMPtr.h" #include "nsAutoPtr.h"
#include "prlog.h" #include "prlog.h"
#ifdef PR_LOGGING #ifdef PR_LOGGING
@ -96,7 +96,7 @@ PRBool
nsEventQueue::PutEvent(nsIRunnable *runnable) nsEventQueue::PutEvent(nsIRunnable *runnable)
{ {
// Avoid calling AddRef+Release while holding our monitor. // Avoid calling AddRef+Release while holding our monitor.
nsCOMPtr<nsIRunnable> event(runnable); nsRefPtr<nsIRunnable> event(runnable);
PRBool rv = PR_TRUE; PRBool rv = PR_TRUE;
{ {
nsAutoMonitor mon(mMonitor); nsAutoMonitor mon(mMonitor);