]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix memory leak
authorAlan Third <alan@idiocy.org>
Sat, 20 Feb 2021 20:40:56 +0000 (20:40 +0000)
committerAlan Third <alan@idiocy.org>
Sat, 20 Feb 2021 20:42:11 +0000 (20:42 +0000)
* src/nsterm.m ([EmacsSurface dealloc]): Release will remove all
objects and free the memory.

src/nsterm.m

index 6551694abeeb4625c9ebe2d43ec6ad3e87a31423..88317f883936ebe939bbd58651fd3798b820d5c4 100644 (file)
@@ -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];
 }