Index: src/ioslaves/file/file.cpp =================================================================== --- src/ioslaves/file/file.cpp +++ src/ioslaves/file/file.cpp @@ -109,7 +109,8 @@ } #ifdef Q_OS_UNIX - LegacyCodec codec; + // From Qt doc : "Note that you should not delete codecs yourself: once created they become Qt's responsibility" + (void)new LegacyCodec; #endif FileProtocol slave(argv[2], argv[3]);