Skip to content
  • Marius Pa's avatar
    TerminalTest fix potential leak of memory · 26936151
    Marius Pa authored and Tomaz  Canabrava's avatar Tomaz Canabrava committed
    The "return" in "#define QCOMPARE(actual, expected)" does not allow us
    to delete the new-ed objects. This raises clangd "konsole/src/autotests/TerminalTest.cpp:28:5:
    Potential leak of memory pointed to by 'display' [clang-analyzer-cplusplus.NewDeleteLeaks]"
    and PVS-Studio V773.
    26936151