Commits

Anonymous 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.

Comments (0)

Files changed (1)

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