Fix crash in MouseCursor::CopyOf()
This issue was causing test failures with the latest webrtc roll. R=mallinath@webrtc.org Review URL: https://webrtc-codereview.appspot.com/7249005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5392 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
8f35afab8c
commit
fb4e256d49
@ -27,9 +27,10 @@ MouseCursor::~MouseCursor() {}
|
|||||||
|
|
||||||
// static
|
// static
|
||||||
MouseCursor* MouseCursor::CopyOf(const MouseCursor& cursor) {
|
MouseCursor* MouseCursor::CopyOf(const MouseCursor& cursor) {
|
||||||
return new MouseCursor(
|
return cursor.image()
|
||||||
cursor.image() ? NULL : BasicDesktopFrame::CopyOf(*cursor.image()),
|
? new MouseCursor(BasicDesktopFrame::CopyOf(*cursor.image()),
|
||||||
cursor.hotspot());
|
cursor.hotspot())
|
||||||
|
: new MouseCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace webrtc
|
} // namespace webrtc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user