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; }