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.
This commit is contained in:
parent
957d7edd64
commit
c87e5baff4
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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) */
|
||||
|
|
|
|||
Loading…
Reference in New Issue