Source

pygame / src / fastevent.c

Diff from to

src/fastevent.c

     dict = PyModule_GetDict (module);
 
     /* add the event module functions if available */
-    eventmodule = PyImport_ImportModule (IMPPREFIX "pygame.event");
+    eventmodule = PyImport_ImportModule (IMPPREFIX "event");
     if (eventmodule)
     {
         char *NAMES[] = {"Event", "event_name", NULL};
                 ecode = PyDict_SetItemString (dict, NAMES[i], ref);
                 Py_DECREF (ref);
                 if (ecode == -1) {
+                    DECREF_MOD(module);
                     MODINIT_ERROR;
                 }
             }