From: Alan Third Date: Sat, 20 Feb 2021 20:40:56 +0000 (+0000) Subject: Fix memory leak X-Git-Tag: emacs-28.0.90~3627 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e6842038c9c48131503804b139872bd565a245d9;p=emacs.git Fix memory leak * src/nsterm.m ([EmacsSurface dealloc]): Release will remove all objects and free the memory. --- 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]; }