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

Unified Diff: ui/base/cursor/cursor.cc

Issue 10928154: Fix incorrect use of UnrefCustomCursor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: check if platform_cursor_ is non-zero in {Ref/Unref}CustomCursor. Created 8 years, 3 months 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
« no previous file with comments | « no previous file | ui/base/cursor/cursor_x11.cc » ('j') | ui/base/cursor/cursor_x11.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cursor/cursor.cc
diff --git a/ui/base/cursor/cursor.cc b/ui/base/cursor/cursor.cc
index 223042e036f2dc667a20f0fdec55b77519a6e306..83963558ad0d2ac9926df3a135ebc83b03e8a00f 100644
--- a/ui/base/cursor/cursor.cc
+++ b/ui/base/cursor/cursor.cc
@@ -42,9 +42,9 @@ void Cursor::SetPlatformCursor(const PlatformCursor& platform) {
void Cursor::Assign(const Cursor& cursor) {
if (*this == cursor)
return;
- native_type_ = cursor.native_type_;
if (native_type_ == kCursorCustom)
UnrefCustomCursor();
+ native_type_ = cursor.native_type_;
platform_cursor_ = cursor.platform_cursor_;
if (native_type_ == kCursorCustom)
RefCustomCursor();
« no previous file with comments | « no previous file | ui/base/cursor/cursor_x11.cc » ('j') | ui/base/cursor/cursor_x11.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698