diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-24 02:23:54 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-24 02:23:54 +0000 |
commit | 2febdcac012afd78e9f42e4d7a74a0cc5ffa06d5 (patch) | |
tree | 94a343d870ec082b4c35ef9f7802942ebb3f2579 /webkit/glue/webcursor.cc | |
parent | f8c6a9566333a2afc093e057ff4f51b0561fd94d (diff) | |
download | chromium_src-2febdcac012afd78e9f42e4d7a74a0cc5ffa06d5.zip chromium_src-2febdcac012afd78e9f42e4d7a74a0cc5ffa06d5.tar.gz chromium_src-2febdcac012afd78e9f42e4d7a74a0cc5ffa06d5.tar.bz2 |
Prevent TestShell from crashing at launch: don't release garbage CGImageRef
in the WebCursor copy constructor.
Review URL: http://codereview.chromium.org/7967
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3901 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webcursor.cc')
-rw-r--r-- | webkit/glue/webcursor.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/glue/webcursor.cc b/webkit/glue/webcursor.cc index 80a5e8b..857ac29 100644 --- a/webkit/glue/webcursor.cc +++ b/webkit/glue/webcursor.cc @@ -57,6 +57,9 @@ WebCursor::WebCursor(const WebCursor& other) { type_ = other.type_; hotspot_x_ = other.hotspot_x_; hotspot_y_ = other.hotspot_y_; +#if defined(OS_MACOSX) + bitmap_ = NULL; // set_bitmap releases bitmap_. +#endif set_bitmap(other.bitmap_); } |