[mw-devel] MW3 r949 - trunk/src

arthur at sucs.org arthur at sucs.org
Thu Apr 19 17:30:09 BST 2007


Author: arthur
Date: 2007-04-19 17:30:08 +0100 (Thu, 19 Apr 2007)
New Revision: 949

Modified:
   trunk/src/js.c
Log:
Close the whofiles after use, fixes #22


Modified: trunk/src/js.c
===================================================================
--- trunk/src/js.c	2007-04-19 08:43:01 UTC (rev 948)
+++ trunk/src/js.c	2007-04-19 16:30:08 UTC (rev 949)
@@ -310,6 +310,8 @@
 		jv = OBJECT_TO_JSVAL(line);
 		JS_SetElement(cx, res, n++, &jv);
 	}
+	close(wfile);
+	close(ufile);
 
 	JS_RemoveRoot(cx, res);
 	*rval = OBJECT_TO_JSVAL(res);





More information about the mw-devel mailing list