On Sun, Jun 08, 2008 at 10:35:25PM +0200, Josselin Mouette wrote:
> Package: xulrunner-1.9
> Version: 1.9~rc2-1
> Severity: normal
>
> Epiphany often crashes upon exit since xulrunner 1.9~rc1, and it seems
> to still happen with 1.9~rc2. Here is the backtrace:
Can you try the attached patch to xulrunner-1.9 ?
Mike
diff --git a/xpcom/glue/nsThreadUtils.cpp b/xpcom/glue/nsThreadUtils.cpp
index 1bc0a60..943af02 100644
--- a/xpcom/glue/nsThreadUtils.cpp
+++ b/xpcom/glue/nsThreadUtils.cpp
@@ -201,6 +201,7 @@ NS_HasPendingEvents(nsIThread *thread)
NS_GetCurrentThread(getter_AddRefs(current));
NS_ENSURE_TRUE(current, PR_FALSE);
thread = current.get();
+ NS_ENSURE_TRUE(thread, PR_FALSE);
}
#endif
PRBool val;
@@ -221,6 +222,7 @@ NS_ProcessNextEvent(nsIThread *thread, PRBool mayWait)
NS_GetCurrentThread(getter_AddRefs(current));
NS_ENSURE_TRUE(current, PR_FALSE);
thread = current.get();
+ NS_ENSURE_TRUE(thread, PR_FALSE);
}
#endif
PRBool val;