diff --git a/macos/cc/JWMMainView.mm b/macos/cc/JWMMainView.mm index 8b1bd8ef..6e760393 100644 --- a/macos/cc/JWMMainView.mm +++ b/macos/cc/JWMMainView.mm @@ -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];