]> git.saurik.com Git - wxWidgets.git/commit
Don't crash in wxImage::SaveFile() if MIME type is not recognized.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 Feb 2012 21:57:17 +0000 (21:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 Feb 2012 21:57:17 +0000 (21:57 +0000)
commit6bed673eb3d8409a68db946397f783b8a964284d
tree1e42ac04d380dc384f490b7891ca3c47069bb741
parentcb8ae61385f1c65552585cb55d8f7bd9f1f690b4
Don't crash in wxImage::SaveFile() if MIME type is not recognized.

Insert a missing "return false" whose lack resulted in a crash if the handler
for the given MIME type wasn't found.

Closes #14028.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/image.cpp