Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Issue 1852433004: Fix NSPasteboard leaks. (Closed)

Created:
4 years, 8 months ago by erikchen
Modified:
4 years, 8 months ago
Reviewers:
Avi (use Gerrit)
CC:
dcheng, asanka, chromium-reviews, darin-cc_chromium.org, dbeam+watch-downloads_chromium.org, jam, nona+watch_chromium.org, rickyz+watch_chromium.org, shuchen+watch_chromium.org, James Su, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix NSPasteboard leaks. This CL adds a new Scoped C++ class that correctly destroys an NSPasteboard created from -[NSPasteboard pasteboardWithUniqueName]. BUG=467296 Committed: https://crrev.com/d9b76f0f70ec99842159e252e414a495377f0aec Cr-Commit-Position: refs/heads/master@{#384697}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix compile error. #

Messages

Total messages: 14 (6 generated)
erikchen
avi: Please review.
4 years, 8 months ago (2016-04-01 18:00:04 UTC) #2
dcheng
Wow, thanks for finding this. It sure would be nice if https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSPasteboard_Class/#//apple_ref/occ/clm/NSPasteboard/pasteboardWithUniqueName mentioned this: what ...
4 years, 8 months ago (2016-04-01 18:04:50 UTC) #3
Avi (use Gerrit)
lgtm https://codereview.chromium.org/1852433004/diff/1/ui/base/clipboard/clipboard_util_mac.mm File ui/base/clipboard/clipboard_util_mac.mm (right): https://codereview.chromium.org/1852433004/diff/1/ui/base/clipboard/clipboard_util_mac.mm#newcode33 ui/base/clipboard/clipboard_util_mac.mm:33: [pasteboard_ releaseGlobally]; OMG Yes, the docs imply this, ...
4 years, 8 months ago (2016-04-01 18:21:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1852433004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1852433004/1
4 years, 8 months ago (2016-04-01 19:01:38 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/181523)
4 years, 8 months ago (2016-04-01 19:45:50 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1852433004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1852433004/20001
4 years, 8 months ago (2016-04-01 20:26:22 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-01 21:49:01 UTC) #12
commit-bot: I haz the power
4 years, 8 months ago (2016-04-01 21:52:28 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d9b76f0f70ec99842159e252e414a495377f0aec
Cr-Commit-Position: refs/heads/master@{#384697}

Powered by Google App Engine
This is Rietveld 408576698