Clean up memory

And remove a test failure when compiling with asan enabled.

Change-Id: I2b8e676665572adcbbac6a910983d5b209bf6d23
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
This commit is contained in:
Lars Knoll 2020-04-16 15:11:15 +02:00
parent f395cedc5b
commit 90f17d8584

View File

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