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

Unified Diff: ui/base/cursor/cursor_x11.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 | « ui/base/cursor/cursor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cursor/cursor_x11.cc
diff --git a/ui/base/cursor/cursor_x11.cc b/ui/base/cursor/cursor_x11.cc
index b74d03c338d3ed8b4660be18377ec027e9f89824..edf6c9bb6ba8cf7dc2403e9d9d2faa1481b5286b 100644
--- a/ui/base/cursor/cursor_x11.cc
+++ b/ui/base/cursor/cursor_x11.cc
@@ -9,11 +9,13 @@
namespace ui {
void Cursor::RefCustomCursor() {
- ui::RefCustomXCursor(platform_cursor_);
+ if (platform_cursor_)
+ ui::RefCustomXCursor(platform_cursor_);
sadrul 2012/09/12 19:46:56 Do you know where Ref/Unref is getting called but
mazda 2012/09/12 19:56:43 That's the following lines in webkit/glue/webcurso
}
void Cursor::UnrefCustomCursor() {
- ui::UnrefCustomXCursor(platform_cursor_);
+ if (platform_cursor_)
+ ui::UnrefCustomXCursor(platform_cursor_);
}
} // namespace ui
« no previous file with comments | « ui/base/cursor/cursor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698