mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
Fix: Memory leak in WindowDescTestsFixture
This commit is contained in:
parent
e0c670cbe8
commit
2b914c7a2f
@ -95,4 +95,5 @@ TEST_CASE_METHOD(WindowDescTestsFixture, "WindowDesc - NWidgetPart validity")
|
||||
|
||||
REQUIRE_NOTHROW(root = MakeWindowNWidgetTree(window_desc->nwid_begin, window_desc->nwid_end, &biggest_index, &shade_select));
|
||||
CHECK((root != nullptr));
|
||||
delete root;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user