From e6842038c9c48131503804b139872bd565a245d9 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Sat, 20 Feb 2021 20:40:56 +0000 Subject: [PATCH] Fix memory leak * src/nsterm.m ([EmacsSurface dealloc]): Release will remove all objects and free the memory. --- src/nsterm.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nsterm.m b/src/nsterm.m index 6551694abee..88317f88393 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -9767,7 +9767,7 @@ nswindow_orderedIndex_sort (id w1, id w2, void *c) for (id object in cache) CFRelease ((IOSurfaceRef)object); - [cache removeAllObjects]; + [cache release]; [super dealloc]; } -- 2.39.2