mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-06-21 01:06:33 +00:00
Fix multiple memory leaks and stale pooled allocations (#1)
This commit is contained in:
@@ -96,7 +96,8 @@ void CreateWorldScreen::buttonClicked(Button *button)
|
||||
if (done) return;
|
||||
done = true;
|
||||
|
||||
int64_t seedValue = (new Random())->nextLong();
|
||||
Random tempRandom;
|
||||
int64_t seedValue = tempRandom.nextLong();
|
||||
wstring seedString = seedEdit->getValue();
|
||||
|
||||
if (seedString.length() != 0)
|
||||
|
||||
Reference in New Issue
Block a user