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

Unified Diff: content/common/cursors/webcursor_aurawin.cc

Issue 1406403007: Eliminate HICON leaks caused by creating icons from bitmap image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use ScopedHICON instead of HICON. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/cursors/webcursor_aurawin.cc
diff --git a/content/common/cursors/webcursor_aurawin.cc b/content/common/cursors/webcursor_aurawin.cc
index 23aec8f19a07d5d518fdcce559092b7e784cfd49..0a9483758fc97bf15709dffb570ce375809df489 100644
--- a/content/common/cursors/webcursor_aurawin.cc
+++ b/content/common/cursors/webcursor_aurawin.cc
@@ -23,7 +23,8 @@ ui::PlatformCursor WebCursor::GetPlatformCursor() {
custom_size_,
hotspot_,
!custom_data_.empty() ? &custom_data_[0] : NULL,
- custom_data_.size());
+ custom_data_.size())
+ .release();
return custom_cursor_;
}

Powered by Google App Engine
This is Rietveld 408576698