diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2010-01-08 16:59:22 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2010-01-08 17:00:01 (GMT) |
commit | 48cce37f6faa2aae9b15edc9543f0e7e08236bb1 (patch) | |
tree | df11108aaed88264c41bbb314df0a34f99b5340b /doc/src/snippets/code | |
parent | 5f27c542e3d471427e77f1ab6a4a689a8ad2f813 (diff) | |
download | Qt-48cce37f6faa2aae9b15edc9543f0e7e08236bb1.zip Qt-48cce37f6faa2aae9b15edc9543f0e7e08236bb1.tar.gz Qt-48cce37f6faa2aae9b15edc9543f0e7e08236bb1.tar.bz2 |
Doc: the QTextDecoder need to be destroyed, reflect that in the example
Reviewed-by: Denis
Diffstat (limited to 'doc/src/snippets/code')
-rw-r--r-- | doc/src/snippets/code/src_corelib_codecs_qtextcodec.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/src/snippets/code/src_corelib_codecs_qtextcodec.cpp b/doc/src/snippets/code/src_corelib_codecs_qtextcodec.cpp index 4e77e04..2fd723e 100644 --- a/doc/src/snippets/code/src_corelib_codecs_qtextcodec.cpp +++ b/doc/src/snippets/code/src_corelib_codecs_qtextcodec.cpp @@ -62,6 +62,7 @@ while (new_data_available()) { QByteArray chunk = get_new_data(); string += decoder->toUnicode(chunk); } +delete decoder; //! [2] |