[mw-devel] MW3 r928 - branches/jscript/src

arthur at sucs.org arthur at sucs.org
Wed Mar 21 16:47:55 GMT 2007


Author: arthur
Date: 2007-03-21 16:47:54 +0000 (Wed, 21 Mar 2007)
New Revision: 928

Modified:
   branches/jscript/src/js.c
Log:
one over zealout AddRoot would have stopped db results getting GCed


Modified: branches/jscript/src/js.c
===================================================================
--- branches/jscript/src/js.c	2007-03-21 16:25:44 UTC (rev 927)
+++ branches/jscript/src/js.c	2007-03-21 16:47:54 UTC (rev 928)
@@ -375,7 +375,6 @@
 		return JS_FALSE;
 	}
 	result = JS_NewObject(cx, &js_dbresultclass, NULL, NULL);
-	JS_AddRoot(cx, result);
 
 	JS_DefineProperty(cx, result, "numrows", INT_TO_JSVAL(dbres->rows), NULL, NULL, JSPROP_READONLY | JSPROP_PERMANENT);
 	JS_DefineProperty(cx, result, "data", OBJECT_TO_JSVAL(resarray), NULL, NULL, JSPROP_READONLY | JSPROP_PERMANENT | JSPROP_ENUMERATE);





More information about the mw-devel mailing list