mirror of
https://github.com/love2d/love.git
synced 2026-08-17 02:58:31 +02:00
Fix Issue #1273
Added Lua index registry clear routine to `destroy` method of classes that use it. If this is left to GC, the abandoned userdata would stay in memory for one full extra cycle. Prettified the code slightly. Clarified some comments. Refactored `Fixture` class `udata` name. Removed Reference class include from `Shape` (it doesn't use it).
This commit is contained in:
@@ -69,7 +69,7 @@ public:
|
||||
friend class Shape;
|
||||
friend class Fixture;
|
||||
|
||||
// The Box2D body. (Should not be public?)
|
||||
// Public because joints et al ask for b2body
|
||||
b2Body *body;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user