aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-01-10 13:53:36 -0500
committerB. Watson <urchlay@slackware.uk>2024-01-10 13:53:36 -0500
commitb3016a96434afb26f152fbe1cce83a59076097ba (patch)
treeb5590cb9a03f00f038ce21f99aec62135e4366fe
parenta47bf6ed4f186f41693e186bf107cf51ada4d5ae (diff)
downloadhcalc-b3016a96434afb26f152fbe1cce83a59076097ba.tar.gz
Note to self.
-rw-r--r--input.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/input.c b/input.c
index 561b97e..eb37004 100644
--- a/input.c
+++ b/input.c
@@ -430,6 +430,13 @@ void key(char c) {
exit(0);
case 'z':
+ /* Note to self: the first 3 times z is pressed, the
+ process grows by ~1.2MB memory used... but after
+ that, it doesn't continue to grow. So what I have
+ here is not exactly a memory leak, but at least a
+ waste of memory that I wish I knew how to fix. 1.2MB
+ is almost nothing, by modern standards, it just
+ bugs me. */
winsize++;
if(winsize == 3) winsize = 0;
free_pixmaps();