diff runtime.c @ 13:ca17531e8c81

Added an object class.
author Atul Varma <varmaa@toolness.com>
date Sun, 28 Jun 2009 18:19:14 -0700
parents 551ba05fe6ad
children fbb9a61fa030
line wrap: on
line diff
--- a/runtime.c	Sun Jun 28 17:43:42 2009 -0700
+++ b/runtime.c	Sun Jun 28 18:19:14 2009 -0700
@@ -37,6 +37,8 @@
 {
   PYM_JSContextObject *context = PyObject_New(PYM_JSContextObject,
                                               &PYM_JSContextType);
+  if (context == NULL)
+    return NULL;
 
   context->runtime = self;
   Py_INCREF(self);