]> git.saurik.com Git - wxWidgets.git/commit
Don't crash in wxOSX::wxClipboard::Clear() if initialization failed.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 22 Aug 2010 22:15:27 +0000 (22:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 22 Aug 2010 22:15:27 +0000 (22:15 +0000)
commit5623dce7cdcc168d81a378b0821569450411358f
tree708b148ad3ae76bf57e40fbbcbc5aba1c269d988
parent45d1c40a918c3e7324a7c86cac608185cac58b79
Don't crash in wxOSX::wxClipboard::Clear() if initialization failed.

Creating the clipboard may fail (e.g. when running from a ssh session to an OS
X machine), don't crash by passing NULL pointer to PasteboardClear() if this
happens but assert and return instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/osx/carbon/clipbrd.cpp