mac: Fix Yosemite crash while attempting to open multiple files.
Attemping to open multiple files using the native Cocoa dialog causes a crash. This CL inserts a safety check to work around it. A Yosemite AppKit bug causes an NSWindowWillCloseNotification to be sent during the -dealloc for a specific NSWindow. Any autoreleases sent to that window must be drained before the window finishes -dealloc. BUG=406944 Review URL: https://codereview.chromium.org/582103002 Cr-Commit-Position: refs/heads/master@{#295507}
Showing
Please register or sign in to comment