Skip to content

Commit

Permalink
Fixed NSMutableDictionary allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
tonsky committed Dec 16, 2022
1 parent d4f504f commit 382e762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macos/cc/JWMMainView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ - (JWMMainView*)initWithWindow:(jwm::WindowMac*)initWindow {
fMarkedText = [[NSMutableAttributedString alloc] init];
fLastFlags = 0;

fTouchIds = [NSMutableDictionary dictionary];
fTouchDeviceIds = [NSMutableDictionary dictionary];
fTouchIds = [[NSMutableDictionary alloc] init];
fTouchDeviceIds = [[NSMutableDictionary alloc] init];
fTouchCount = 0;

[self updateTrackingAreas];
Expand Down

0 comments on commit 382e762

Please sign in to comment.