scal

Simple Calendar
git clone git://git.wimdupont.com/scal.git
Log | Files | Refs | LICENSE

commit e05c5842cace7a63233102069300708c72eac2d8
parent 930d328e0e79fec8c2b8aed83e537d1db91c0474
Author: Wim Dupont <wim@wimdupont.com>
Date:   Sun, 10 Nov 2024 16:02:23 +0100

cleanup free notes

Diffstat:
Mscal.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/scal.c b/scal.c @@ -817,10 +817,12 @@ clean() endwin(); - for (int i = 0; i < note_count; i++) + for (int i = 0; i < note_count; i++) { free(notes[i]->description); - + free(notes[i]); + } free(notes); + if (curnotes != NULL) free(curnotes); }