1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-15 14:27:37 +00:00

fixed a memory leak in (de)compress_string

This commit is contained in:
Zeno Rogue
2022-08-07 01:57:06 +02:00
parent fba2cc95cf
commit 464f4277cc
3 changed files with 11 additions and 3 deletions

View File

@@ -1028,6 +1028,7 @@ EX void find_multiple_interpretation() {
}
EX void test_transducers() {
if(flags & w_skip_transducers) return;
autom.clear();
int iterations = 0;
while(true) {
@@ -1159,7 +1160,7 @@ EX void test_transducers() {
extract(autom, special[tid][dir], tid, dir);
}
for(int tid=0; tid<isize(t_origin); tid++) {
if(!(flags & w_skip_transducer_loops)) for(int tid=0; tid<isize(t_origin); tid++) {
int id = 0;
/* if correct, each loop iteration recovers the identity, so we can build it just once */
@@ -1189,7 +1190,7 @@ EX void test_transducers() {
}
}
if(true) {
if(!(flags & w_skip_transducer_terminate)) {
println(hlog, "Verifying distances");
map<pair<int, int>, vector< pair<int, int>> > by_roadsign;