Skip to content

Commit

Permalink
leak fix: free the mutable array copy used for sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
http://jneen.net/ committed Jun 8, 2020
1 parent 04130f3 commit e538bcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/display_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit e538bcb

Please sign in to comment.