Fix memleaks in duchain unittests

Authored by buschinski on Oct 31 2018, 12:40 PM.

Description

Fix memleaks in duchain unittests

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

Details

Committed
buschinskiOct 31 2018, 12:40 PM
Reviewer
KDevelop
Differential Revision
D16458: Fix memleaks in duchain unittests
Parents
R32:0fc8dddfc8f6: Remove unmaintained and buggy CVS plugin
Branches
Unknown
Tags
Unknown