summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2010-01-08 16:59:22 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2010-01-08 17:00:01 (GMT)
commit48cce37f6faa2aae9b15edc9543f0e7e08236bb1 (patch)
treedf11108aaed88264c41bbb314df0a34f99b5340b /doc/src/snippets/code
parent5f27c542e3d471427e77f1ab6a4a689a8ad2f813 (diff)
downloadQt-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.cpp1
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]