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:
Alex Szpakowski
2018-12-17 16:44:13 -04:00
parent d4762b4612
commit 5d5c2f9a96
6 changed files with 38 additions and 41 deletions
+1 -6
View File
@@ -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