From e538bcb3a2838c157b8f946e888a1c51cfec63de Mon Sep 17 00:00:00 2001 From: "http://jneen.net/" Date: Sun, 31 May 2020 22:46:51 -0400 Subject: [PATCH] leak fix: free the mutable array copy used for sorting --- src/display_manager.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/display_manager.c b/src/display_manager.c index 4f9da149..4ac0b630 100644 --- a/src/display_manager.c +++ b/src/display_manager.c @@ -124,6 +124,7 @@ CFStringRef display_manager_arrangement_display_uuid(int arrangement) CFMutableArrayRef mut_displays = CFArrayCreateMutableCopy(NULL, count, displays); CFArraySortValues(mut_displays, all, &coordinate_comparator, NULL); result = CFArrayGetValueAtIndex(mut_displays, index); + CFRelease(mut_displays); } }