Source

pygame / src / surflock.c

Diff from to

src/surflock.c

         return 0;
     }
     PyList_Append (surf->locklist, ref);
+    Py_DECREF (ref);
 
     if (surf->subsurface)
         PySurface_Prep (surfobj);
 #if PY3
     module = PyModule_Create (&_module);
 #else
-    module = Py_InitModule3 ("surflock", _surflock_methods, _surflock_doc);
+    module = Py_InitModule3 (MODPREFIX "surflock", 
+                             _surflock_methods, 
+                             _surflock_doc);
 #endif
     if (module == NULL) {
         MODINIT_ERROR;