Len...@lind7608.Belkin  committed 7866ddf

Fix memory leak with with pygame.surfarray.pixels3d - thanks Christopher Night

The Surface.get_view() method was not decrementing the reference count of the
newly created cobject (capsule) after creating the new view.

  • Participants
  • Parent commits bf27f25

Comments (0)

Files changed (1)

File src/surface.c

         return 0;
     view = PgView_New(capsule, self, surf_view_destr);
+    Py_DECREF(capsule);
     if (!view) {
         return 0;