зеркало из https://github.com/mozilla/pjs.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:
Родитель
0b13b257bb
Коммит
10589364d8
|
@ -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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче