From 3c28757f633206a590c032c94549c7d4726cc1f3 Mon Sep 17 00:00:00 2001 From: "http://jneen.net/" Date: Sat, 13 Jun 2020 13:06:49 -0400 Subject: [PATCH] TODO: releasing these causes segfaults, but i'm not sure why --- src/display_manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/display_manager.c b/src/display_manager.c index e049fb58..ac851741 100644 --- a/src/display_manager.c +++ b/src/display_manager.c @@ -107,8 +107,8 @@ static enum CFComparisonResult coordinate_comparator(const void *a_p, const void uint32_t did_a = CGDisplayGetDisplayIDFromUUID(uuid_a); uint32_t did_b = CGDisplayGetDisplayIDFromUUID(uuid_b); - CFRelease(uuid_a); - CFRelease(uuid_b); + // if (uuid_a) CFRelease(uuid_a); + // if (uuid_b) CFRelease(uuid_b); CGPoint center_a = display_center(did_a); CGPoint center_b = display_center(did_b);