Skip to content
  • Bernd Buschinski's avatar
    Fix memleaks in duchain unittests · c3c30113
    Bernd Buschinski authored
    Summary:
    The TypeSystem::create test was changed as now the destruction is also taken into account for QBENCHMARK
    
    The TopDUContext dtor is protected, however you can execute
    delete TopDUContext; but it will NOT call the protected TopDUContext dtor but the public DUContext dtor.
    
    Test Plan:
    - compile kdevelop unitest with ASAN&LSAN
    - execute test_duchain
    
    Reviewers: #kdevelop, kfunk
    
    Reviewed By: #kdevelop, kfunk
    
    Subscribers: kfunk, kdevelop-devel
    
    Tags: #kdevelop
    
    Differential Revision: https://phabricator.kde.org/D16458
    c3c30113