From 90f17d85845698945bfe3e6932b94e9a6be6d258 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 16 Apr 2020 15:11:15 +0200 Subject: Clean up memory And remove a test failure when compiling with asan enabled. Change-Id: I2b8e676665572adcbbac6a910983d5b209bf6d23 Reviewed-by: Alex Blasche --- tests/auto/corelib/codecs/qtextcodec/echo/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/auto/corelib/codecs/qtextcodec/echo/main.cpp') 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; } -- cgit v1.2.3