Skip to content

Commit 057d110

Browse files
authored
Fix cpp-tests memory leak
1 parent 4fb737d commit 057d110

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/cpp-tests/Source/BaseTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/****************************************************************************
22
Copyright (c) 2013-2016 Chukong Technologies Inc.
33
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
4+
Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md).
45
56
https://axmol.dev/
67
@@ -178,7 +179,6 @@ void TestList::runThisTest()
178179
auto origin = director->getVisibleOrigin();
179180
deatchTableView();
180181
_tableView = TestCustomTableView::create(this, Size(400, visibleSize.height));
181-
_tableView->retain();
182182
_tableView->setPosition(origin.x + (visibleSize.width - 400) / 2, origin.y);
183183
_tableView->setDirection(ScrollView::Direction::VERTICAL);
184184
_tableView->setVerticalFillOrder(TableView::VerticalFillOrder::TOP_DOWN);

0 commit comments

Comments
 (0)