summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/codecs/qtextcodec
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-04-16 15:11:15 +0200
committerLars Knoll <lars.knoll@qt.io>2020-04-17 11:24:35 +0200
commit90f17d85845698945bfe3e6932b94e9a6be6d258 (patch)
treeb4f1ce2440317e791140d930d36863de4024a49e /tests/auto/corelib/codecs/qtextcodec
parentf395cedc5b7c5f0aa55387e906e4ad420f887533 (diff)
Clean up memory
And remove a test failure when compiling with asan enabled. Change-Id: I2b8e676665572adcbbac6a910983d5b209bf6d23 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'tests/auto/corelib/codecs/qtextcodec')
-rw-r--r--tests/auto/corelib/codecs/qtextcodec/echo/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/corelib/codecs/qtextcodec/echo/main.cpp b/tests/auto/corelib/codecs/qtextcodec/echo/main.cpp
index 52645184a3..d1540192f9 100644
--- a/tests/auto/corelib/codecs/qtextcodec/echo/main.cpp
+++ b/tests/auto/corelib/codecs/qtextcodec/echo/main.cpp
@@ -42,6 +42,7 @@ int main(int argc, char **argv)
QTextEncoder *encoder = locale->makeEncoder();
QByteArray output = encoder->fromUnicode(string);
printf("%s\n", output.data());
+ delete encoder;
return 0;
}