From c87e5baff4df799bec95f05406f7e97ab67e2c4f Mon Sep 17 00:00:00 2001 From: "R. Timothy Edwards" Date: Sat, 8 Nov 2025 17:24:09 -0500 Subject: [PATCH] Rolling back part of the last commit; the correction to the tile allocation fixes the issue with memory being grabbed constantly and never released, but re-surfaces an error with tiles being used after being freed. This is assumed to be a long-standing bug that has not been found yet. Meanwhile, the error that uses up excess memory is better than the error that causes layouts to get completely screwed up. --- VERSION | 2 +- tiles/tile.c | 4 ++-- tiles/tile.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index 84b91e5d..651b6b08 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.574 +8.3.575 diff --git a/tiles/tile.c b/tiles/tile.c index 778d1f9f..c2652b77 100644 --- a/tiles/tile.c +++ b/tiles/tile.c @@ -820,7 +820,7 @@ TiJoinX1(Tile **delay1, Tile *tile1, Tile *tile2, Plane *plane) { TiFreeIf(*delay1); TiJoinX(tile1, tile2, plane); - *delay1 = tile2; + // *delay1 = tile2; } void @@ -828,7 +828,7 @@ TiJoinY1(Tile **delay1, Tile *tile1, Tile *tile2, Plane *plane) { TiFreeIf(*delay1); TiJoinY(tile1, tile2, plane); - *delay1 = tile2; + // *delay1 = tile2; } #endif diff --git a/tiles/tile.h b/tiles/tile.h index 3acc23f0..a63b614f 100644 --- a/tiles/tile.h +++ b/tiles/tile.h @@ -307,7 +307,7 @@ TiJoinX1(Tile **delay1, Tile *tile1, Tile *tile2, Plane *plane) { TiFreeIf(*delay1); TiJoinX(tile1, tile2, plane); - *delay1 = tile2; + // *delay1 = tile2; } inline void @@ -315,7 +315,7 @@ TiJoinY1(Tile **delay1, Tile *tile1, Tile *tile2, Plane *plane) { TiFreeIf(*delay1); TiJoinY(tile1, tile2, plane); - *delay1 = tile2; + // *delay1 = tile2; } #else /* To support older compilers (that don't auto emit based on -O level) */