Fix wxHTMLDataObject compilation and memory leaks.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Jun 2012 11:57:20 +0000 (11:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Jun 2012 11:57:20 +0000 (11:57 +0000)
commitf421e3f1197c9ab723bd86c245f7ad483f1dfd3b
treebbb10c97457cddeb5cdeb1fb7aef9397c7b04339
parent0681e07a14b413b426366005f1c24f88b8702733
Fix wxHTMLDataObject compilation and memory leaks.

Use wxString::FromUTF8() and utf8_str() instead of directly using wxConvUTF8
as this is simpler and also works correctly in non-Unicode build (and more
efficiently in UTF-8 build as no conversion is done there).

Do not allocate -- and leak -- buffer in wxHTMLDataObject::GetDataHere(),
we're supposed to be putting data into the caller-provided buffer instead of
using our own.

Closes #14391.

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