Bug 614347 - 'XPConnect-wrapped JSObjects must clear their gray bit when they are handed out'. r=peterv+gal, a=blocking. Bustage fix.

This commit is contained in:
Ben Turner 2011-02-08 20:12:48 -08:00
Родитель 633b25f14a
Коммит 0fed29e6f7
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -4336,7 +4336,7 @@ public:
* kept alive past the next CC. * kept alive past the next CC.
*/ */
jsval GetJSVal() const jsval GetJSVal() const
{if(JSVAL_IS_OBJECT(mJSVal)) {if(!JSVAL_IS_PRIMITIVE(mJSVal))
JSVAL_TO_OBJECT(mJSVal)->unmark(XPC_GC_COLOR_GRAY); JSVAL_TO_OBJECT(mJSVal)->unmark(XPC_GC_COLOR_GRAY);
return mJSVal;} return mJSVal;}