diff --git a/ChangeLog.txt b/ChangeLog.txt index fc779fc9c8..425171aaca 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -7,6 +7,10 @@ Entries may not always be in chronological/commit order. See license at the end of file. */ +2025-12-05 22:52 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * src/rtl/gttrm/gttrm.c + ! fixed memory leak + 2025-12-04 16:39 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/rtl/cdpapi.c ! fixed hb_cdpUTF8StringPeek() to work with 0 based indexes and diff --git a/src/rtl/gttrm/gttrm.c b/src/rtl/gttrm/gttrm.c index 5594497ee6..be32154775 100644 --- a/src/rtl/gttrm/gttrm.c +++ b/src/rtl/gttrm/gttrm.c @@ -3486,6 +3486,8 @@ static void hb_gt_trm_Exit( PHB_GT pGT ) if( pTerm->fRestTTY ) tcsetattr( pTerm->hFilenoStdin, TCSANOW, &pTerm->saved_TIO ); #endif + if( pTerm->szTitle ) + hb_xfree( pTerm->szTitle ); if( pTerm->nLineBufSize > 0 ) hb_xfree( pTerm->pLineBuf ); if( pTerm->iOutBufSize > 0 )