Chromium Code Reviews| 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 |