Fixed resource not closed after memory dump (#324)

This commit is contained in:
madcode15 2017-02-04 13:31:00 -05:00 committed by Dylan K. Taylor
parent 6999388dd1
commit 7c8586684e

View File

@ -284,6 +284,8 @@ class MemoryManager{
echo "[Dump] Wrote " . count($objects) . " objects\n";
}while($continue);
fclose($obData);
file_put_contents($outputFolder . "/staticProperties.js", json_encode($staticProperties, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT));
file_put_contents($outputFolder . "/serverEntry.js", json_encode($data, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT));