mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
math and data module instances are now deleted when they have no more Lua references (matches the behaviour of other modules.) Fixes the deprecation system not fully restarting when love.event.quit("restart") is called.
Resolves issue #1462.
This commit is contained in:
@@ -114,6 +114,7 @@ class DataModule : public Module
|
||||
{
|
||||
public:
|
||||
|
||||
DataModule();
|
||||
virtual ~DataModule();
|
||||
|
||||
// Implements Module.
|
||||
@@ -125,12 +126,6 @@ public:
|
||||
ByteData *newByteData(const void *d, size_t size);
|
||||
ByteData *newByteData(void *d, size_t size, bool own);
|
||||
|
||||
static DataModule instance;
|
||||
|
||||
private:
|
||||
|
||||
DataModule();
|
||||
|
||||
}; // DataModule
|
||||
|
||||
} // data
|
||||
|
||||
Reference in New Issue
Block a user