зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
685cf0434c
Коммит
8d68c36a7f
|
@ -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<nsIRunnable> event(runnable);
|
||||
nsRefPtr<nsIRunnable> event(runnable);
|
||||
PRBool rv = PR_TRUE;
|
||||
{
|
||||
nsAutoMonitor mon(mMonitor);
|
||||
|
|
Загрузка…
Ссылка в новой задаче