Skip to content

Commit

Permalink
TODO: releasing these causes segfaults, but i'm not sure why
Browse files Browse the repository at this point in the history
  • Loading branch information
http://jneen.net/ committed May 3, 2021
1 parent 85cd047 commit 3c28757
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/display_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3c28757

Please sign in to comment.