mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
NSViewComponentPeer: Fix NSTrackingArea leak
This commit is contained in:
parent
eabcfbad26
commit
cdba8eb8e9
1 changed files with 5 additions and 4 deletions
|
|
@ -126,10 +126,11 @@ public:
|
|||
| NSTrackingEnabledDuringMouseDrag
|
||||
| NSTrackingActiveAlways
|
||||
| NSTrackingInVisibleRect;
|
||||
[view addTrackingArea: [[NSTrackingArea alloc] initWithRect: r
|
||||
options: options
|
||||
owner: view
|
||||
userInfo: nil]];
|
||||
const NSUniquePtr<NSTrackingArea> trackingArea { [[NSTrackingArea alloc] initWithRect: r
|
||||
options: options
|
||||
owner: view
|
||||
userInfo: nil] };
|
||||
[view addTrackingArea: trackingArea.get()];
|
||||
|
||||
notificationCenter = [NSNotificationCenter defaultCenter];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue